-
Notifications
You must be signed in to change notification settings - Fork 825
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
Infer consistent tensor meta #5362
Conversation
…infer_consistent_tensor_meta Conflicts: oneflow/core/framework/op_expr.h oneflow/core/framework/tensor.h oneflow/core/framework/tensor_impl.h
…infer_consistent_tensor_meta Conflicts: oneflow/core/framework/tensor_impl.cpp
…flow-Inc/oneflow into infer_consistent_tensor_meta
…flow-Inc/oneflow into infer_consistent_tensor_meta
return infer_args; | ||
} | ||
|
||
private: | ||
ConsistentTensorMetaInferArgs() = default; | ||
Maybe<void> Init(const TensorTuple& input_tensors, Symbol<PlacementScope> placement_scope, | ||
const AttrMap& attrs); |
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.
这个Init是作为public方法还是和构造方法合并?我拿不准 @daquexian
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.
这个方法会返回 Maybe,所以不能和构造方法合并,就应该保持现在的样子吧
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.
这个方法是不是可以删掉,把它的内容写在 New 方法里面
No description provided.