- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 183 for tf_status (0.17 sec)
-
tensorflow/c/tf_status.h
// Return a new status object. TF_CAPI_EXPORT extern TF_Status* TF_NewStatus(void); // Delete a previously created status object. TF_CAPI_EXPORT extern void TF_DeleteStatus(TF_Status*); // Record <code, msg> in *s. Any previous information is lost. // A common use is to clear a status: TF_SetStatus(s, TF_OK, ""); TF_CAPI_EXPORT extern void TF_SetStatus(TF_Status* s, TF_Code code,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 20:00:09 UTC 2024 - 3.9K bytes - Viewed (0) -
tensorflow/c/tf_status.cc
#ifndef LIBTPU_EXCLUDE_C_API_IMPL #include "tensorflow/c/tf_status.h" #include "tensorflow/c/tf_status_internal.h" // Trampoline implementation to redirect to TSL. Kept here for backward // compatibility only. TF_Status* TF_NewStatus() { return TSL_NewStatus(); } void TF_DeleteStatus(TF_Status* s) { TSL_DeleteStatus(s); } void TF_SetStatus(TF_Status* s, TF_Code code, const char* msg) { TSL_SetStatus(s, TSL_Code(code), msg);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Aug 24 18:40:14 UTC 2023 - 1.7K bytes - Viewed (0) -
tensorflow/c/tf_status_helper.h
#include <utility> #include "tensorflow/c/tf_status.h" #include "tsl/platform/status.h" namespace tsl { // Set the attribute of "tf_status" from the attributes of "status". void Set_TF_Status_from_Status(TF_Status* tf_status, const absl::Status& status); // Returns a "status" from "tf_status". absl::Status StatusFromTF_Status(const TF_Status* tf_status); } // namespace tsl namespace tensorflow {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Apr 14 21:57:32 UTC 2024 - 2.9K bytes - Viewed (0) -
tensorflow/c/experimental/next_pluggable_device/c_api.h
TF_Status* status); TF_CAPI_EXPORT extern void TF_AllocateTempForVariableInfo( TF_OpKernelContext* ctx, TF_VariableInfo* var_info, TF_Status* status); TF_CAPI_EXPORT extern TF_Tensor* TF_GetTensorFromVariableInfo( TF_VariableInfo* var_info, TF_Status* status); TF_CAPI_EXPORT extern void TF_DeleteVariableInfo(TF_VariableInfo* var_info);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Dec 20 20:01:06 UTC 2023 - 7.2K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental.h
TF_Status* s); // `op_name` must outlive `op`. void TF_AbstractOpSetOpName(TF_AbstractOp* op, const char* const op_name, TF_Status* s); // `attr_name` must outlive `op`. void TF_AbstractOpSetAttrType(TF_AbstractOp* op, const char* const attr_name, TF_DataType value, TF_Status* s); void TF_DeleteAbstractTensor(TF_AbstractTensor*);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Oct 24 11:27:00 UTC 2021 - 7K bytes - Viewed (0) -
tensorflow/c/env.cc
#include "tensorflow/c/c_api_macros.h" #include "tensorflow/c/tf_status.h" #include "tensorflow/c/tf_status_helper.h" #include "tensorflow/core/platform/env.h" #include "tensorflow/core/platform/path.h" #include "tensorflow/core/platform/types.h" struct TF_StringStream { std::vector<::tensorflow::string>* list; size_t position; }; void TF_CreateDir(const char* dirname, TF_Status* status) { TF_SetStatus(status, TF_OK, "");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 11 01:20:50 UTC 2021 - 7K 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/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/experimental/filesystem/plugins/posix/posix_filesystem.cc
TF_Status* status) { auto posix_file = static_cast<PosixFile*>(file->plugin_file); size_t r = fwrite(buffer, 1, n, posix_file->handle); if (r != n) TF_SetStatusFromIOError(status, errno, posix_file->filename); else TF_SetStatus(status, TF_OK, ""); } static int64_t Tell(const TF_WritableFile* file, TF_Status* status) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Mar 24 20:08:23 UTC 2024 - 15.8K bytes - Viewed (0) -
tensorflow/c/kernels_experimental.h
int num_dims, TF_StringView* var_name, void (*plugin_allocator)(TF_OpKernelContext*, TF_Tensor*, TF_DataType, const int64_t*, int, TF_Status*), TF_Status* tf_status); // Expose higher level temporary variable operator for Pluggable vendors to // implement in the plugin for destroying temporary variables. The API takes in
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Aug 07 14:44:39 UTC 2023 - 9.4K bytes - Viewed (0)