Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CheckNumericsGrad (0.17 sec)

  1. tensorflow/cc/gradients/array_grad.cc

      grad_outputs->push_back(ScatterNd(scope, indices, grad_inputs[0], ref_shape));
      grad_outputs->push_back(NoGradient());
      return scope.status();
    }
    REGISTER_GRADIENT_OP("GatherNd", GatherNdGrad);
    
    Status CheckNumericsGrad(const Scope& scope, const Operation& op,
                             const std::vector<Output>& grad_inputs,
                             std::vector<Output>* grad_outputs) {
      string message;
    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 indices = Cast(scope_, Const(scope_, {{1}, {0}}), DT_INT64);
      auto y = GatherNd(scope_, x, indices);
      RunTest(x, shape, y, shape);
    }
    
    TEST_F(ArrayGradTest, CheckNumericsGrad) {
      TensorShape shape({5, 2});
      auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape));
      auto y = CheckNumerics(scope_, x, "CheckNumerics failed");
      RunTest(x, shape, 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