Skip to content

Commit

Permalink
[phi] move sigmoid_cross_entopy_with_logits log_loss cumsum auc kerne…
Browse files Browse the repository at this point in the history
…l to phi (#39976)

* move sigmoid cross entopy with logits to phi

* fix ci

* move log_loss to phi

* move cumsum to phi

* revert infershape

* fix xpu ci

* move auc to phi

* remove comment

* update sigmoid_cross_entropy_with_logits_op.cu

* update sigmoid_cross_entropy_with_logits_op

* Update log_loss
  • Loading branch information
linjieccc authored Mar 4, 2022
1 parent 0bfba16 commit b7bbe39
Show file tree
Hide file tree
Showing 39 changed files with 1,817 additions and 1,346 deletions.
115 changes: 0 additions & 115 deletions paddle/fluid/operators/cum_op.h

This file was deleted.

7 changes: 1 addition & 6 deletions paddle/fluid/operators/cumsum_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */

#include "paddle/fluid/framework/op_registry.h"
#include "paddle/fluid/framework/op_version_registry.h"
#include "paddle/fluid/operators/cum_op.h"

namespace paddle {
namespace operators {
Expand Down Expand Up @@ -91,11 +91,6 @@ using CPU = paddle::platform::CPUDeviceContext;
REGISTER_OPERATOR(cumsum, ops::CumOp, ops::CumsumOpMaker,
ops::CumsumGradMaker<paddle::framework::OpDesc>,
ops::CumsumGradMaker<paddle::imperative::OpBase>);
REGISTER_OP_CPU_KERNEL(cumsum, ops::CumKernel<CPU, ops::CumsumFunctor<float>>,
ops::CumKernel<CPU, ops::CumsumFunctor<double>>,
ops::CumKernel<CPU, ops::CumsumFunctor<int16_t>>,
ops::CumKernel<CPU, ops::CumsumFunctor<int>>,
ops::CumKernel<CPU, ops::CumsumFunctor<int64_t>>);

REGISTER_OP_VERSION(cumsum)
.AddCheckpoint(
Expand Down
Loading

0 comments on commit b7bbe39

Please sign in to comment.