Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for es5function (0.21 sec)

  1. tensorflow/c/experimental/gradients/math_grad_test.cc

      }
    
      AbstractContextPtr immediate_execution_ctx_;
      GradientRegistry registry_;
      Status status_;
    
     public:
      bool UseMlir() const { return strcmp(std::get<0>(GetParam()), "mlir") == 0; }
      bool UseFunction() const { return std::get<2>(GetParam()); }
    };
    
    TEST_P(CppGradients, TestAddGrad) {
      AbstractTensorHandlePtr x;
      {
        AbstractTensorHandle* x_raw = nullptr;
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Thu Apr 13 17:32:14 GMT 2023
    - 16.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/parallel_device/parallel_device_test.cc

          TF_DeleteFunction);
      if (TF_GetCode(status) != TF_OK) return;
      TFE_ContextAddFunction(context, function.get(), status);
    }
    
    TEST(PARALLEL_DEVICE, TestFunction) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      std::unique_ptr<TFE_ContextOptions, decltype(&TFE_DeleteContextOptions)> opts(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  3. tensorflow/c/experimental/gradients/nn_grad_test.cc

                         absl::MakeSpan(outputs), UseFunction());
      ASSERT_EQ(errors::OK, status_.code()) << status_.message();
      ASSERT_NO_FATAL_FAILURE(CheckTensorValue(outputs[0], {0.0f}, /*dims*/ {},
                                               /*abs_error*/ 0));
      outputs[0]->Unref();
    }
    
    TEST_P(CppGradients, TestSparseSoftmaxCrossEntropyWithLogitsGrad) {
      if (UseFunction()) {
        // TODO(b/168850692): Enable this.
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/gradients/array_grad_test.cc

      }
    
      AbstractContextPtr immediate_execution_ctx_;
      GradientRegistry registry_;
      Status status_;
    
     public:
      bool UseMlir() const { return strcmp(std::get<0>(GetParam()), "mlir") == 0; }
      bool UseFunction() const { return std::get<2>(GetParam()); }
    };
    
    TEST_P(CppGradients, TestIdentityNGrad) {
      // This test is interesting because the current implementation of GradientTape
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5K bytes
    - Viewed (0)
  5. tensorflow/c/eager/unified_api_test.cc

                          /*inputs=*/{x.get()},
                          /*outputs=*/{},
                          /*use_function=*/UseFunction());
      ASSERT_EQ(errors::OK, s.code()) << s.message();
    }
    
    TEST_P(UnifiedAPI, TestUnknownShapeTracing) {
      if (!UseFunction()) {
        GTEST_SKIP() << "Tracing only test.";
      }
      if (UseMlir()) {
        // TODO(b/173074167): Remove this.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  6. tensorflow/c/eager/gradient_checker_test.cc

        // low tolerances
        enable_tensor_float_32_execution(false);
      }
    
      AbstractContextPtr ctx_;
    
     public:
      bool UseMlir() const { return strcmp(std::get<0>(GetParam()), "mlir") == 0; }
      bool UseFunction() const { return std::get<2>(GetParam()); }
    };
    
    TEST_P(GradientCheckerTest, TestMatMul) {
      float A_vals[] = {1.0f, 2.0f, 3.0f, 4.0f};
      int64_t A_dims[] = {2, 2};
      AbstractTensorHandlePtr A;
      {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 6.5K bytes
    - Viewed (0)
Back to top