Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ReshapeGrad (0.21 sec)

  1. tensorflow/cc/gradients/array_grad.cc

          message);
      grad_outputs->push_back(CheckNumerics(scope, grad_inputs[0], err_msg));
      return scope.status();
    }
    REGISTER_GRADIENT_OP("CheckNumerics", CheckNumericsGrad);
    
    Status ReshapeGrad(const Scope& scope, const Operation& op,
                       const std::vector<Output>& grad_inputs,
                       std::vector<Output>* grad_outputs) {
      auto input_shape = Shape(scope, op.input(0));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 23:33:32 UTC 2023
    - 31.7K bytes
    - Viewed (0)
  2. tensorflow/cc/gradients/array_grad_test.cc

      auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape));
      auto y = CheckNumerics(scope_, x, "CheckNumerics failed");
      RunTest(x, shape, y, shape);
    }
    
    TEST_F(ArrayGradTest, ReshapeGrad) {
      TensorShape x_shape({5, 2});
      auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape));
      TensorShape y_shape({2, 5});
      auto y = Reshape(scope_, x, {2, 5});
      RunTest(x, x_shape, y, y_shape);
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 23:33:32 UTC 2023
    - 19.3K bytes
    - Viewed (0)
Back to top