- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for input_memory_types (0.15 sec)
-
tensorflow/c/kernels.cc
if (i < 0 || i >= cc_ctx->num_inputs()) { TF_SetStatus(status, TF_OUT_OF_RANGE, "input index out of range"); return false; } TF_SetStatus(status, TF_OK, ""); return cc_ctx->input_memory_type(i) == tensorflow::HOST_MEMORY; } bool TF_IsHostMemoryOutput(TF_OpKernelContext* ctx, int i, TF_Status* status) { auto* cc_ctx = reinterpret_cast<::tensorflow::OpKernelContext*>(ctx);
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
TF_RETURN_IF_ERROR(GetCompileTimeConstInputs( &ctx->op_kernel(), &constant_input_indices, ctx->function_library())); if (!absl::c_all_of(constant_input_indices, [&](int idx) { return ctx->input_memory_type(idx) == HOST_MEMORY; })) { return errors::Internal("Unexpected device placement for a constant input"); } return constant_input_indices; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 00:36:08 UTC 2024 - 40.4K bytes - Viewed (0)