- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 61 for cc_status (0.18 sec)
-
tensorflow/c/experimental/next_pluggable_device/c_api.cc
absl::Status cc_status; if (var_info == nullptr) { cc_status = absl::InvalidArgumentError("TF_VariableInfo is NULL."); status->status = cc_status; return nullptr; } if (var_info->var_info.var() == nullptr) { cc_status = absl::InvalidArgumentError( "VariableInfo does not track a resource variable."); status->status = cc_status; return nullptr; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 05:48:24 UTC 2024 - 13.9K bytes - Viewed (0) -
tensorflow/c/kernels.cc
TF_Status* status) { auto* cc_ctx = reinterpret_cast<::tensorflow::OpKernelConstruction*>(ctx); tensorflow::NameAttrList function; auto cc_status = cc_ctx->GetAttr(attr_name, &function); if (!cc_status.ok()) { tsl::Set_TF_Status_from_Status(status, cc_status); return nullptr; } TF_Buffer* buffer = TF_NewBuffer(); cc_status = tensorflow::MessageToBuffer(function, buffer);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 22:53:47 UTC 2024 - 36K bytes - Viewed (0) -
tensorflow/c/tf_tensor.cc
} void TF_TensorBitcastFrom(const TF_Tensor* from, TF_DataType type, TF_Tensor* to, const int64_t* new_dims, int num_new_dims, TF_Status* status) { TF_SetStatus(status, TF_OK, ""); Status cc_status( tensorflow::down_cast<tensorflow::TensorInterface*>(to->tensor) ->BitcastFrom( *tensorflow::down_cast<const tensorflow::TensorInterface*>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Apr 14 21:57:32 UTC 2024 - 11.5K bytes - Viewed (0) -
tensorflow/c/kernels_experimental.cc
} TF_SetStatus(tf_status, TF_OK, ""); } void TF_DestroyTemporaryVariable(TF_OpKernelContext* ctx, const int index, TF_StringView* var_name, TF_Status* tf_status) { auto* context = reinterpret_cast<::tensorflow::OpKernelContext*>(ctx); if (!IsRefType(context->input_dtype(0))) { tf_status->status =
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/experimental/stream_executor/stream_executor.cc
stats.num_allocs = c_stats.num_allocs; stats.bytes_in_use = c_stats.bytes_in_use; stats.peak_bytes_in_use = c_stats.peak_bytes_in_use; stats.largest_alloc_size = c_stats.largest_alloc_size; if (c_stats.has_bytes_limit) { stats.bytes_limit = c_stats.bytes_limit; } stats.bytes_reserved = c_stats.bytes_reserved; stats.peak_bytes_reserved = c_stats.peak_bytes_reserved;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jun 14 07:39:19 UTC 2024 - 27.1K bytes - Viewed (0) -
tensorflow/c/ops.cc
TF_Status* status)) { auto* cc_builder = reinterpret_cast<OpDefBuilder*>(builder); cc_builder->SetShapeFn( [shape_inference_func](InferenceContext* ctx) -> tensorflow::Status { TF_Status* c_status = TF_NewStatus(); auto c_ctx = reinterpret_cast<TF_ShapeInferenceContext*>(ctx); shape_inference_func(c_ctx, c_status);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 28 22:41:35 UTC 2022 - 10.9K bytes - Viewed (0) -
tensorflow/c/experimental/grappler/grappler.cc
params.patch_version = GO_PATCH; params.optimizer = &optimizer; params.optimizer_configs = &optimizer_configs; OwnedTFStatus c_status(TF_NewStatus()); init_fn(¶ms, c_status.get()); TF_RETURN_IF_ERROR(tsl::StatusFromTF_Status(c_status.get())); TF_RETURN_IF_ERROR(ValidateTPOptimizerRegistrationParams(params)); TF_RETURN_IF_ERROR(ValidateTPOptimizer(optimizer));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 15K bytes - Viewed (0) -
tensorflow/c/eager/c_api.cc
return tensorflow::CustomDeviceTensorHandle::SummarizeValue(summary); } TF_Status c_status; std::unique_ptr<TF_Buffer, decltype(&TF_DeleteBuffer)> summary_buffer( methods_.summarize(data_, &c_status), TF_DeleteBuffer); if (!c_status.status.ok()) { return c_status.status; } summary = std::string(reinterpret_cast<const char*>(summary_buffer->data),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 08:11:23 UTC 2024 - 44K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc
static inline void TF_SetStatusFromGCSStatus( const google::cloud::Status& gcs_status, TF_Status* status) { TF_SetStatus(status, static_cast<TF_Code>(gcs_status.code()), gcs_status.message().c_str()); } static void* plugin_memory_allocate(size_t size) { return calloc(1, size); } static void plugin_memory_free(void* ptr) { free(ptr); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 23 06:55:53 UTC 2023 - 46.9K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device.cc
Status cpp_status = parallel_tensor->SummarizeValue(summary); if (!cpp_status.ok()) { tsl::Set_TF_Status_from_Status(status, cpp_status); return nullptr; } return TF_NewBufferFromString(summary.data(), summary.size()); } TensorHandlePtr ParallelTensorToTensorHandle( const std::string& parallel_device_name, TFE_Context* context, std::unique_ptr<ParallelTensor> t, TF_Status* status) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 29 22:05:31 UTC 2023 - 18.3K bytes - Viewed (0)