“0ba63475659822bd146f1f1dcfc7eabca8b7047d”上不存在“paddle/fluid/operators/distributed/send_recv.proto”
提交 4ab641e2 编写于 作者: Z Zhang, Guoming

Revert "Add missing reshape found by GM"

This reverts commit b59c1063.
上级 b59c1063
......@@ -35,13 +35,6 @@ using platform::GetMKLDNNFormat;
template <typename DeviceContext, typename T>
class DeQuantOpKernel : public framework::OpKernel<T> {
public:
void InferShape(framework::InferShapeContext *ctx) const override {
PADDLE_ENFORCE(ctx->HasInput("Input"), "Input should not be null");
PADDLE_ENFORCE(ctx->HasOutput("Output"), "Output should not be null");
ctx->SetOutputDim("Output", ctx->GetInputDim("Input"));
ctx->ShareLoD("Input", /*->*/ "Output");
}
void Compute(const framework::ExecutionContext& ctx) const override {
auto* input = ctx.Input<Tensor>("Input");
......
......@@ -33,14 +33,6 @@ using platform::GetMKLDNNFormat;
template <typename DeviceContext, typename T>
class QuantOpKernel : public framework::OpKernel<T> {
public:
void InferShape(framework::InferShapeContext *ctx) const override {
PADDLE_ENFORCE(ctx->HasInput("Input"), "Input should not be null");
PADDLE_ENFORCE(ctx->HasOutput("Output"), "Output should not be null");
ctx->SetOutputDim("Output", ctx->GetInputDim("Input"));
ctx->ShareLoD("Input", /*->*/ "Output");
}
void Compute(const framework::ExecutionContext& ctx) const override {
auto* input = ctx.Input<Tensor>("Input");
auto* scale = ctx.Input<Tensor>("Scale");
......
......@@ -34,14 +34,6 @@ using platform::GetMKLDNNFormat;
template <typename DeviceContext, typename T>
class ReQuantOpKernel : public framework::OpKernel<T> {
public:
void InferShape(framework::InferShapeContext *ctx) const override {
PADDLE_ENFORCE(ctx->HasInput("Input"), "Input should not be null");
PADDLE_ENFORCE(ctx->HasOutput("Output"), "Output should not be null");
ctx->SetOutputDim("Output", ctx->GetInputDim("Input"));
ctx->ShareLoD("Input", /*->*/ "Output");
}
void Compute(const framework::ExecutionContext& ctx) const override {
auto* input = ctx.Input<Tensor>("Input");
auto* scale = ctx.Input<Tensor>("Scale");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册