Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TF_FLOAT (0.05 sec)

  1. tensorflow/c/eager/gradient_checker.cc

        AbstractTensorHandlePtr two_eps;
        {
          AbstractTensorHandle* two_eps_raw = nullptr;
          TF_RETURN_IF_ERROR(TestScalarTensorHandle<float, TF_FLOAT>(
              ctx, 2 * epsilon, &two_eps_raw));
          two_eps.reset(two_eps_raw);
        }
    
        // Initialize theta[i] + epsilon.
        memcpy(thetaPlus_data.data(), TF_TensorData(theta_tensor),
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/gradient_checker_test.cc

        absl::Status s = TestTensorHandleWithDims<float, TF_FLOAT>(
            ctx_.get(), A_vals, A_dims, 2, &A_raw);
        ASSERT_EQ(errors::OK, s.code()) << s.message();
        A.reset(A_raw);
      }
      float B_vals[] = {.5f, -1.0f, 1.0f, 1.0f};
      int64_t B_dims[] = {2, 2};
      AbstractTensorHandlePtr B;
      {
        AbstractTensorHandle* B_raw;
        absl::Status s = TestTensorHandleWithDims<float, TF_FLOAT>(
            ctx_.get(), B_vals, B_dims, 2, &B_raw);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. tensorflow/c/eager/gradients_test.cc

        ctx.reset(ctx_raw);
      }
    
      AbstractTensorHandlePtr t;
      {
        AbstractTensorHandle* x_raw = nullptr;
        absl::Status s =
            TestScalarTensorHandle<float, TF_FLOAT>(ctx.get(), 1.0f, &x_raw);
        ASSERT_EQ(errors::OK, s.code()) << s.message();
        t.reset(x_raw);
      }
    
      AbstractOperationPtr check_numerics_op(ctx->CreateOperation());
      ForwardOperation forward_op;
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top