- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for TensorHandle (0.08 seconds)
-
tensorflow/c/eager/c_api.cc
if (!tensorflow::TensorHandle::classof(unwrapped_handle)) { status->status = tensorflow::errors::InvalidArgument("Invalid handle"); return nullptr; } tensorflow::TensorHandle* handle = tensorflow::TensorHandleFromInterface(unwrapped_handle); if (handle->Type() != tensorflow::TensorHandle::LOCAL) { status->status = tensorflow::errors::InvalidArgument(
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Fri Nov 07 05:55:21 GMT 2025 - 43.9K bytes - Click Count (0) -
tensorflow/c/eager/custom_device_testutil.cc
#include "tensorflow/core/lib/gtl/cleanup.h" #include "tensorflow/core/platform/test.h" namespace { struct LoggingDevice { std::string device_name; std::string underlying_device; // Set to true whenever a TensorHandle is copied onto the device bool* arrived_flag; // Set to true whenever an operation is executed bool* executed_flag; // If true, only explicit op placements are accepted. If false, uses // type-based dispatch.Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Dec 20 23:30:21 GMT 2025 - 8.4K bytes - Click Count (0) -
tensorflow/c/eager/c_api_test.cc
EXPECT_NE("", TF_DeviceListName(devices, i, status)) << i; EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); } TF_DeleteDeviceList(devices); TF_DeleteStatus(status); } TEST(CAPI, TensorHandle) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); TFE_ContextOptions* opts = TFE_NewContextOptions(); TFE_Context* ctx = TFE_NewContext(opts, status.get());
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Thu Oct 09 05:56:18 GMT 2025 - 94.6K bytes - Click Count (0)