- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for TensorHandle (0.23 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/c_api_experimental.h
// Given a Tensor, wrap it with a TensorHandle // // Similar to TFE_NewTensorHandle, but includes a pointer to the TFE_Context. // The context should be identical to that of the Tensor. TF_CAPI_EXPORT TFE_TensorHandle* TFE_NewTensorHandleFromTensor( TFE_Context* ctx, TF_Tensor* t, TF_Status* status); // Create a packed TensorHandle with the given list of TensorHandles.
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Wed Feb 21 22:37:46 GMT 2024 - 39.5K bytes - Click Count (1) -
tensorflow/c/eager/immediate_execution_context.h
virtual ImmediateExecutionTensorHandle* CreateLocalHandleFromTFTensor( tensorflow::Tensor& t, const char* d_name) = 0; // Convert a TFRT TensorHandle to tensorflow::TensorHandle. virtual ImmediateExecutionTensorHandle* TFTensorHandleFromInterface( ImmediateExecutionTensorHandle* handle) = 0; virtual std::vector<std::string> GetLoggedOpsTestonly() { return {}; }
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 12.3K bytes - Click Count (0) -
tensorflow/c/eager/c_api_experimental.cc
tensorflow::TensorHandleFromInterface(unwrapped_handle)); } tensorflow::EagerContext* context = tensorflow::ContextFromInterface(tensorflow::unwrap(ctx)); tensorflow::TensorHandle* handle = nullptr; status->status = tensorflow::TensorHandle::CreatePackedHandle( std::move(tensor_handles), context, &handle); return tensorflow::wrap(handle); }Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 35.9K bytes - Click Count (0) -
tensorflow/c/eager/dlpack.cc
if (h == nullptr) { status->status = tensorflow::errors::InvalidArgument("Invalid handle"); return nullptr; } tensorflow::TensorHandle* handle = tensorflow::TensorHandleFromInterface(tensorflow::unwrap(h)); if (handle->Type() != TensorHandle::LOCAL) { status->status = tensorflow::errors::InvalidArgument( "DLPack doesn't support ", handle->TypeString(), " tensor"); return nullptr; }
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Thu Mar 13 23:41:52 GMT 2025 - 13K bytes - Click Count (0) -
tensorflow/c/c_api_experimental.cc
tensorflow::Tensor tensor(dtype, tensorflow::TensorShape({})); std::memcpy(tensorflow::TensorCApi::Buffer(tensor)->data(), data, len); status->status = absl::OkStatus(); return tensorflow::wrap(tensorflow::TensorHandle::CreateLocalHandle(tensor)); } // Set server_def on the context, possibly updating it. TF_CAPI_EXPORT extern void TFE_EnableCollectiveOps(TFE_Context* ctx,
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 04 05:55:32 GMT 2025 - 29.4K bytes - Click Count (0)