Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for resolvers (0.34 sec)

  1. tensorflow/c/eager/c_api_experimental_test.cc

        CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
        TF_Tensor* resolved = TFE_TensorHandleResolve(on_host, status);
        CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
        const float* resolved_data =
            static_cast<const float*>(TF_TensorData(resolved));
        EXPECT_EQ(0, memcmp(m_float, resolved_data, 4 * sizeof(float)));
        TF_DeleteTensor(resolved);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  2. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

    #include "tensorflow/core/platform/stacktrace_handler.h"
    #include "tensorflow/core/platform/test.h"
    #include "tensorflow/core/util/command_line_flags.h"
    
    #if defined(PLATFORM_WINDOWS)
    // Make mkdir resolve to _mkdir to create the test temporary directory.
    #include <direct.h>
    #define mkdir(name, mode) _mkdir(name)
    
    // Windows defines the following macros to convert foo to fooA or fooW,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  3. tensorflow/c/eager/immediate_execution_tensor_handle.cc

        std::string& summary) const {
      Status status;
      AbstractTensorPtr resolved(
          // TODO(allenl): Resolve should be const, and the caches that get updated
          // marked mutable.
          const_cast<ImmediateExecutionTensorHandle*>(this)->Resolve(&status));
      if (!status.ok()) {
        return status;
      }
      summary = resolved->SummarizeValue();
      return absl::OkStatus();
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  4. tensorflow/c/eager/custom_device_test.cc

      std::unique_ptr<TF_Tensor, decltype(&TF_DeleteTensor)> resolved_value(
          TFE_TensorHandleResolve(var_value_unpacked, status.get()),
          TF_DeleteTensor);
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      ASSERT_EQ(111., *static_cast<float*>(TF_TensorData(resolved_value.get())));
    
      // Free the backing buffer for the variable.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 27 23:39:24 GMT 2020
    - 18.4K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api.cc

      if (h == nullptr) {
        status->status = tensorflow::errors::InvalidArgument("Invalid handle");
        return nullptr;
      }
    
      tensorflow::AbstractTensorInterface* t =
          tensorflow::unwrap(h)->Resolve(&status->status);
      if (t == nullptr) {
        return nullptr;
      }
    
      return new TF_Tensor{t};
    }
    
    void* TFE_TensorHandleDevicePointer(TFE_TensorHandle* h, TF_Status* status) {
      if (h == nullptr) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
Back to top