- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for jac_n (0.05 sec)
-
tensorflow/cc/framework/gradient_checker.cc
*max_error = 0.0; auto jac_t = jacobian_ts[i].matrix<JAC_T>(); auto jac_n = jacobian_ns[i].matrix<JAC_T>(); for (int r = 0; r < jacobian_ts[i].dim_size(0); ++r) { for (int c = 0; c < jacobian_ts[i].dim_size(1); ++c) { auto cur_error = std::fabs(jac_t(r, c) - jac_n(r, c)); // Treat any NaN as max_error and immediately return. // (Note that std::max may ignore NaN arguments.)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 05:57:22 UTC 2024 - 18.2K bytes - Viewed (0) -
tensorflow/cc/framework/gradient_checker.h
/// <X_T, Y_T, JAC_T> should be <complex64, complex64, float> /// Note that JAC_T is always real-valued, and should be an appropriate /// precision to host the partial derivatives for dy/dx /// /// if y = ComplexAbs(x) where x is DT_COMPLEX64 (so y is DT_FLOAT) /// <X_T, Y_T, JAC_T> should be <complex64, float, float> /// /// if y = Complex(x, x) where x is DT_FLOAT (so y is DT_COMPLEX64)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 15:35:17 UTC 2022 - 2.8K bytes - Viewed (0) -
tensorflow/cc/gradients/image_grad_test.cc
MakeOp<X_T>(op_type, x_data, {2, 3}, align_corners, half_pixel_centers, &x, &y); JAC_T max_error; TF_ASSERT_OK((ComputeGradientError<X_T, Y_T, JAC_T>( scope_, x, x_data, y, {1, 2, 3, 1}, &max_error))); EXPECT_LT(max_error, 1.5e-3); } template <typename X_T, typename Y_T, typename JAC_T> void TestResizeToLargerAndAlign(const OpType op_type,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 15 04:08:05 UTC 2019 - 12.1K bytes - Viewed (0)