- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for TF_SetPayload (0.23 sec)
-
tensorflow/c/tf_status.cc
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); } void TF_SetPayload(TF_Status* s, const char* key, const char* value) { TSL_SetPayload(s, key, value); } void TF_ForEachPayload(const TF_Status* s, TF_PayloadVisitor visitor, void* capture) {
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.cc
status.ForEachPayload( [tf_status](absl::string_view key, const absl::Cord& value) { std::string key_str(key); std::string value_str(value); TF_SetPayload(tf_status, key_str.c_str(), value_str.c_str()); }); } absl::Status StatusFromTF_Status(const TF_Status* tf_status) { absl::Status status(StatusCodeFromTSLCode(TF_GetCode(tf_status)),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 23 06:12:29 UTC 2024 - 1.7K bytes - Viewed (0) -
tensorflow/c/tf_status.h
// Record <key, value> as a payload in *s. The previous payload having the // same key (if any) is overwritten. Payload will not be added if the Status // is OK. TF_CAPI_EXPORT void TF_SetPayload(TF_Status* s, const char* key, const char* value); // Iterates over the stored payloads and calls the `visitor(key, value)`
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/eager/c_api_experimental.cc
if (TF_GetCode(&s) != TF_Code::TF_OK) { tensorflow::CoordinationServiceError error; *error.mutable_source_task() = result.error_payload().source_task(); TF_SetPayload(&s, tensorflow::CoordinationErrorPayloadKey().data(), error.SerializeAsString().c_str()); } *state_iter = std::move(s); ++state_iter; } status->status = absl::OkStatus();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 11 23:52:39 UTC 2024 - 35.9K bytes - Viewed (0)