Skip to content

Commit

Permalink
[Feature](bangc-ops): add adamw proto (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
gggghja authored Mar 22, 2024
1 parent dcef993 commit f2c2d52
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions mlu_op_test.proto
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ enum OpType {
ABS = 2022;
ACTIVE_ROTATED_FILTER_FORWARD = 257073;
ADDN = 7178;
ADAMW = 7979;
BALL_QUERY = 20231025;
BATCH_MATMUL_BCAST = 2049;
BBOX_OVERLAPS = 2041;
Expand Down Expand Up @@ -361,6 +362,7 @@ message Node {

optional ConvolutionForwardParam convolution_forward_param = 23;
optional AddNParam addn_param = 104; // param
optional AdamWParam adamw_param = 403505; // param
optional TransposeParam transpose_param = 62; // param
optional ScatterNdParam scatter_nd_param = 117; // param
optional UniqueParam unique_param = 9111; // param
Expand Down Expand Up @@ -471,6 +473,20 @@ message RandomData {
optional bool convert_dtype = 5 [default = false]; // convert float to int
}

// param of AdamW
message AdamWParam {
required float lr = 1 [default = 0.01];
required float beta1 = 2 [default = 0.4];
required float beta2 = 3 [default = 0.4];
required float bias1 = 4 [default = 0.6];
required float bias2 = 5 [default = 0.6];
required float epsilon = 6 [default = 0.1];
required float weight_decay = 7 [default = 0];
required float scale = 8 [default = 1];
optional bool use_nesterov = 9 [default = false];
}


// remove this param later
message TestParam {
repeated EvaluationCriterion error_func = 1;
Expand Down

0 comments on commit f2c2d52

Please sign in to comment.