Skip to content
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

[Functional] Part2: Add partial unary and math functional apis #5218

Merged
merged 14 commits into from
Jun 21, 2021

Conversation

hjchen2
Copy link
Contributor

@hjchen2 hjchen2 commented Jun 16, 2021

No description provided.

}
}
Maybe<Tensor> operator()(const TensorTuple& inputs) const {
CHECK_GE_OR_RETURN(inputs.size(), 2);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add都是两个或两个以上的tensor相加,length 0或1都是不合法的输入

oneflow/core/functional/functional_api.yaml Outdated Show resolved Hide resolved
oneflow/core/functional/impl/math_functor.cpp Outdated Show resolved Hide resolved
oneflow/core/functional/impl/math_functor.cpp Outdated Show resolved Hide resolved
oneflow/core/functional/impl/math_functor.cpp Outdated Show resolved Hide resolved
oneflow/python/nn/modules/acos.py Show resolved Hide resolved
oneflow/python/nn/modules/math_ops.py Outdated Show resolved Hide resolved
Co-authored-by: Yinggang Wang <wyg19970408@gmail.com>
@hjchen2 hjchen2 requested review from oneflow-ci-bot and removed request for oneflow-ci-bot June 21, 2021 00:36
@oneflow-ci-bot oneflow-ci-bot removed their request for review June 21, 2021 01:35
@oneflow-ci-bot oneflow-ci-bot merged commit b671490 into master Jun 21, 2021
@oneflow-ci-bot oneflow-ci-bot deleted the dev_functional_unary_and_binary_ops branch June 21, 2021 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants