Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 70 for max_error (0.12 sec)

  1. tensorflow/cc/framework/gradient_checker_test.cc

      float max_error;
      TF_ASSERT_OK((ComputeGradientError<complex64, complex64, float>(
          scope, {x}, {shape}, {y}, {shape}, &max_error)));
      EXPECT_LT(max_error, 1e-4);
    }
    
    TEST(GradientCheckerTest, BasicComplex128) {
      Scope scope = Scope::NewRootScope();
      TensorShape shape({2, 4, 3});
      auto x = Placeholder(scope, DT_COMPLEX128, Placeholder::Shape(shape));
      auto y = Square(scope, x);
      double max_error;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 06 15:54:08 UTC 2018
    - 6.7K bytes
    - Viewed (0)
  2. tensorflow/cc/gradients/data_flow_grad_test.cc

                   const OutputList& ys, const std::vector<TensorShape>& y_shapes) {
        TF_ASSERT_OK(scope_.status());
        float max_error;
        TF_ASSERT_OK((ComputeGradientError<float, float, float>(
            scope_, xs, x_shapes, ys, y_shapes, &max_error)));
        EXPECT_LT(max_error, 1e-4);
      }
    
      Scope scope_;
    };
    
    TEST_F(DataFlowGradTest, DynamicPartitionGrad) {
      TensorShape data_shape({2, 3, 2});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 02 18:49:13 UTC 2018
    - 2.6K bytes
    - Viewed (0)
  3. tensorflow/cc/gradients/linalg_grad_test.cc

                   const TensorShape& y_shape) {
        TF_ASSERT_OK(scope_.status());
        float max_error;
        TF_ASSERT_OK((ComputeGradientError<float, float, float>(
            scope_, {x}, {x_shape}, {y}, {y_shape}, &max_error)));
        EXPECT_LT(max_error, 1e-3);
      }
    
      void RunTest(const OutputList& xs, const std::vector<TensorShape>& x_shapes,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 07 23:11:54 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  4. tensorflow/cc/gradients/image_grad_test.cc

        Output x, y;
        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)
  5. tensorflow/cc/gradients/functional_grad_test.cc

                   const TensorShape& y_shape) {
        TF_ASSERT_OK(scope_.status());
        float max_error;
        auto result = (ComputeGradientError<float, float, float>(
            scope_, {x}, {x_shape}, {y}, {y_shape}, &max_error));
        TF_CHECK_OK(result);
        TF_ASSERT_OK(result);
        EXPECT_LT(max_error, 1e-3);
      }
    
      void RunTest(const OutputList& xs, const std::vector<TensorShape>& x_shapes,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 26 14:42:24 UTC 2021
    - 3K bytes
    - Viewed (0)
  6. tensorflow/cc/framework/gradient_checker.h

                                JAC_T* max_error);
    
    /// Overload of ComputeGradientError which takes an initial value for 'x'.
    template <typename X_T, typename Y_T, typename JAC_T>
    Status ComputeGradientError(const Scope& scope, const Output& x,
                                const Tensor& x_init_value, const Output& y,
                                const TensorShape& y_shape, JAC_T* max_error);
    
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 15:35:17 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  7. tensorflow/cc/gradients/manip_grad_test.cc

                   const TensorShape& y_shape) {
        TF_ASSERT_OK(scope_.status());
        float max_error;
        TF_ASSERT_OK((ComputeGradientError<float, float, float>(
            scope_, {x}, {x_shape}, {y}, {y_shape}, &max_error)));
        EXPECT_LT(max_error, 1e-4);
      }
    
      Scope scope_;
    };
    
    TEST_F(ManipGradTest, RollGrad) {
      TensorShape shape({5, 4, 3});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 19 12:19:42 UTC 2020
    - 1.6K bytes
    - Viewed (0)
  8. tensorflow/cc/gradients/nn_grad_test.cc

        EXPECT_LT(max_error, 1e-3);
      }
    
      void RunTest(const OutputList& xs, const std::vector<TensorShape>& x_shapes,
                   const OutputList& ys, const std::vector<TensorShape>& y_shapes) {
        TF_ASSERT_OK(scope_.status());
        float max_error;
        TF_ASSERT_OK((ComputeGradientError<float, float, float>(
            scope_, xs, x_shapes, ys, y_shapes, &max_error)));
        EXPECT_LT(max_error, 1e-3);
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 22 20:45:22 UTC 2022
    - 15K bytes
    - Viewed (0)
  9. tensorflow/cc/framework/gradient_checker.cc

            if (std::isnan(cur_error)) {
              *max_error = cur_error;
              return absl::OkStatus();
            }
            *max_error = std::max(*max_error, cur_error);
          }
        }
      }
      return absl::OkStatus();
    }
    
    }  // namespace
    
    template <typename X_T, typename Y_T, typename JAC_T>
    Status ComputeGradientError(const Scope& scope, const OutputList& xs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  10. tensorflow/cc/gradients/math_grad_test.cc

        TF_ASSERT_OK(scope_.status());
        float max_error;
        TF_ASSERT_OK((ComputeGradientError<float, float, float>(
            scope_, xs, x_shapes, ys, y_shapes, &max_error)));
        EXPECT_LT(max_error, 1e-3);
      }
    
      void RunTest(const Output& x, const Tensor& x_init_value, const Output& y,
                   const TensorShape& y_shape) {
        TF_ASSERT_OK(scope_.status());
        float 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