- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for HandleFromInput (0.32 sec)
-
tensorflow/compiler/jit/xla_device_ops.cc
// variables or the tensor is a constant this is safe, as future writes will // trigger copies). OP_REQUIRES_OK(context, LookupOrCreateResource<Var>( context, HandleFromInput(context, 0), &variable, [this, &value](Var** ptr) { *ptr = new Var(dtype_); *(*ptr)->tensor() = value;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 3K bytes - Viewed (0) -
tensorflow/c/kernels_experimental.cc
auto* cc_ctx = reinterpret_cast<::tensorflow::OpKernelContext*>(ctx); *maybe_resource = nullptr; if (cc_ctx->input_dtype(input) == tensorflow::DT_RESOURCE) { if (LookupResource(cc_ctx, HandleFromInput(cc_ctx, input), maybe_resource) .ok()) { return (*maybe_resource)->mu(); } else { cc_ctx->CtxFailureWithWarning( tensorflow::errors::Internal("Invalid variable reference."));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 23 06:12:29 UTC 2024 - 30.9K bytes - Viewed (0) -
tensorflow/c/kernels.cc
TF_OpKernelContext* ctx, int i, TF_Buffer* serialized_resource_handle_proto, TF_Status* status) { auto* cc_ctx = reinterpret_cast<::tensorflow::OpKernelContext*>(ctx); const tensorflow::ResourceHandle& handle = HandleFromInput(cc_ctx, i); tensorflow::ResourceHandleProto handle_proto; handle.AsProto(&handle_proto); auto cc_status = tensorflow::MessageToBuffer( handle_proto, serialized_resource_handle_proto);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 22:53:47 UTC 2024 - 36K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_launch_util.cc
if (actual_input_index < 0 || actual_input_index >= ctx->num_inputs()) { return errors::Internal("Invalid input index for variable write."); } const ResourceHandle handle = HandleFromInput(ctx, actual_input_index); TF_ASSIGN_OR_RETURN(Var * variable, GetOrCreateResourceVar(ctx, handle, write)); out.emplace_back(actual_input_index, handle.name(), variable,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 00:36:08 UTC 2024 - 40.4K bytes - Viewed (0)