Skip to content

Commit

Permalink
plt update net instance, test=model
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeref996 committed Aug 30, 2024
1 parent 0c598c7 commit 5c017f9
Showing 1 changed file with 50 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
testings:
dy_train:
model_dtype: "float32"
Loss:
loss_name: "diy.loss.diy_loss.mean_loss"
optimizer:
optimizer_name: "diy.optimizer.diy_opt.naive_opt"
params:
opt_api: "paddle.optimizer.SGD"
learning_rate: 0.00001
step: 20

dy2st_train_static_inputspec:
model_dtype: "float32"
Loss:
loss_name: "diy.loss.diy_loss.mean_loss"
optimizer:
optimizer_name: "diy.optimizer.diy_opt.naive_opt"
params:
opt_api: "paddle.optimizer.SGD"
learning_rate: 0.00001
step: 20
return_net_instance: "True" # 测试engine会返回模型实例

jit_save_static_inputspec:
use_upstream_net_instance: "True" # 获取上游模型实例而不是重新构建模型实例
model_dtype: "float32"

paddle_infer_new_exc_pir:
jit_save_type: "jit_save_static_inputspec"

compare:
-
baseline: 'dy_train'
latest: 'dy2st_train_static_inputspec'
precision:
delta: 0.00001
rtol: 0.000001
-
baseline: 'paddle_infer_new_exc_pir'
latest: 'dy_train'
precision:
delta: 0.00001
rtol: 0.000001
-
baseline: 'paddle_infer_new_exc_pir'
latest: 'dy2st_train_static_inputspec'
precision:
delta: 0.00001
rtol: 0.000001

0 comments on commit 5c017f9

Please sign in to comment.