提交 10bbbcbd 编写于 作者: H Hongyu Liu 提交者: phlrain

Merge pull request #16346 from phlrain/add_floordiv_and_mod

add elementwise floordiv, mod
上级 853f5a8c
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved. /* Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
...@@ -21,7 +21,7 @@ namespace operators { ...@@ -21,7 +21,7 @@ namespace operators {
class ElementwiseFloorDivOpMaker : public ElementwiseOpMaker { class ElementwiseFloorDivOpMaker : public ElementwiseOpMaker {
protected: protected:
std::string GetName() const override { return "FloorDiv"; } std::string GetName() const override { return "FloorDiv"; }
std::string GetEquation() const override { return "Out = X % Y"; } std::string GetEquation() const override { return "Out = X // Y"; }
}; };
} // namespace operators } // namespace operators
} // namespace paddle } // namespace paddle
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册