From 10bbbcbd4f18a3e6ab0cf2a8ca663ca662610454 Mon Sep 17 00:00:00 2001 From: Hongyu Liu <43953930+phlrain@users.noreply.github.com> Date: Fri, 22 Mar 2019 16:12:24 +0800 Subject: [PATCH] Merge pull request #16346 from phlrain/add_floordiv_and_mod add elementwise floordiv, mod --- paddle/fluid/operators/elementwise/elementwise_floordiv_op.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/operators/elementwise/elementwise_floordiv_op.cc b/paddle/fluid/operators/elementwise/elementwise_floordiv_op.cc index 56db8a7c48..66c56da417 100644 --- a/paddle/fluid/operators/elementwise/elementwise_floordiv_op.cc +++ b/paddle/fluid/operators/elementwise/elementwise_floordiv_op.cc @@ -1,4 +1,4 @@ -/* 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"); you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ namespace operators { class ElementwiseFloorDivOpMaker : public ElementwiseOpMaker { protected: 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 paddle -- GitLab