提交 18d107c2 编写于 作者: P phlrain

add floordiv and mod op; test=develop

上级 56c2d384
/* 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
......
/* 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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册