-
Notifications
You must be signed in to change notification settings - Fork 28
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
Zq/add specified autocompare2 #794
Zq/add specified autocompare2 #794
Conversation
Co-authored-by: Lingjie <[email protected]>
@@ -2770,6 +2768,7 @@ | |||
|
|||
- schema: _amp_foreach_non_finite_check_and_unscale_(at::TensorList self, Tensor(b!) found_inf, Tensor inv_scale) -> void | |||
autocompare: disable | |||
# TODO(someone): fix this issue when `autocompare` is on |
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.
谁记得这件事就写谁
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.
done,后面我来跟进这个issue
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.
已经修复了
[&opname](auto& matcher) { return std::regex_match(opname, matcher); }); | ||
} | ||
|
||
constexpr const char* fallbackEnvName = "DIPU_FORCE_FALLBACK_OPS_LIST"; |
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.
constexpr const char* fallbackEnvName = "DIPU_FORCE_FALLBACK_OPS_LIST"; | |
constexpr const char* kFallbackEnvName = "DIPU_FORCE_FALLBACK_OPS_LIST"; |
下同
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.
done
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.
还有俩
基于这个PR进行修改,原来的PR保留为draft。

重构register机制,针对配置文件中的custom_fallback和autocmpare,定义了四个注册宏
生成的代码片段如下: