Enable cast propagation with level one by default. (#8286)

This commit is contained in:
satyajandhyala 2021-07-08 14:38:09 -07:00 committed by GitHub
parent f40df30219
commit 84bc20fe9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ struct GraphTransformerConfiguration {
return (s1 == s2) == false;
}
int level{-1}; /* -1 => no cast propagation,
int level{1}; /* -1 => no cast propagation,
0 => use user specified list of opcodes to allow moving cast operations,
1 => use ORT predefined list of level 1 opcodes in addition to the user specified allow opcodes
2 => use ORT predefined list of level 2 opcodes in addition to the user specified allow opcodes

View file

@ -71,7 +71,7 @@ struct TrainingParameters {
bool enable_adasum = false;
// transformation
int propagate_cast_ops_level = -1;
int propagate_cast_ops_level = 1;
std::vector<std::string> propagate_cast_ops_allow;
GraphTransformerConfiguration::PropagateCastOpsConfiguration::Strategy propagate_cast_ops_strategy =
GraphTransformerConfiguration::PropagateCastOpsConfiguration::Strategy::None;