Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CastGrad (0.12 sec)

  1. tensorflow/cc/gradients/math_grad.cc

          DT_FLOAT, DT_HALF, DT_DOUBLE, DT_BFLOAT16, DT_COMPLEX64, DT_COMPLEX128};
      return std::find(std::begin(valid_dtypes), std::end(valid_dtypes), dtype) !=
             std::end(valid_dtypes);
    }
    
    Status CastGrad(const Scope& scope, const Operation& op,
                    const std::vector<Output>& grad_inputs,
                    std::vector<Output>* grad_outputs) {
      if (op.num_inputs() != 1) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 50.7K bytes
    - Viewed (0)
  2. tensorflow/cc/gradients/math_grad_test.cc

                             ::testing::Combine(::testing::Bool(),
                                                ::testing::Bool(),
                                                ::testing::Range(0, 2)));
    
    TEST_F(NaryGradTest, CastGrad) {
      TensorShape shape({2, 3, 2});
      auto x = Placeholder(scope_, DT_DOUBLE, Placeholder::Shape(shape));
      auto y = Cast(scope_, x, DT_FLOAT);
      TF_ASSERT_OK(scope_.status());
      double max_error;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 36K bytes
    - Viewed (0)
Back to top