Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SplitGrad (0.52 sec)

  1. tensorflow/cc/gradients/array_grad.cc

    Status SplitGrad(const Scope& scope, const Operation& op,
                     const std::vector<Output>& grad_inputs,
                     std::vector<Output>* grad_outputs) {
      grad_outputs->push_back(NoGradient());
      grad_outputs->push_back(Concat(scope, grad_inputs, op.input(0)));
      return scope.status();
    }
    REGISTER_GRADIENT_OP("Split", SplitGrad);
    
    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

    TEST_F(ArrayGradTest, IdentityGrad) {
      TensorShape shape({5, 2});
      auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape));
      auto y = Identity(scope_, x);
      RunTest(x, shape, y, shape);
    }
    
    TEST_F(ArrayGradTest, SplitGrad) {
      TensorShape x_shape({5, 2});
      auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape));
      // Split along the second dimension.
      auto split_dim = Const(scope_, 1, {});
    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