-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ARM] calib op change kInt32/kInt64 to kFloat #10128
Conversation
Thanks for your contribution! |
@@ -37,7 +37,8 @@ std::shared_ptr<std::mt19937_64> GetCPURandomEngine(uint64_t seed) { | |||
} else { | |||
VLOG(4) << "Use default random engine with fixed random seed = " << seed; | |||
} | |||
engine->seed(seed); | |||
std::seed_seq seq({seed}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
此处是为了和paddle_cpu对齐
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
paddle_cpu是只在seed=0的情况下是这样处理的吧?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
paddle_cpu是只在seed=0的情况下是这样处理的吧?
应该是不为0也这么处理,之前测试过,固定seed=2023可以精度对齐
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR devices
Arm
PR types
Bug fixes
PR changes
OP
Description
calib 作为ARM通用算子,应该支持INT8/FP32/FP16 所有精度,而不是根据数据类型设置精度。比如一个int8模型也有从FP32转为int的需求。