Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TSL_NewStatus (0.24 sec)

  1. tensorflow/c/tf_status_helper_test.cc

    #include "tensorflow/c/tf_status_helper.h"
    
    #include "tsl/platform/errors.h"
    #include "tsl/platform/test.h"
    
    namespace tsl {
    namespace {
    
    TEST(StatusHelper, TestStatusHelper) {
      TSL_Status* s = TSL_NewStatus();
      absl::Status cc_status(absl::InvalidArgumentError("some error"));
      cc_status.SetPayload("key1", absl::Cord("value1"));
      cc_status.SetPayload("key2", absl::Cord("value2"));
      Set_TF_Status_from_Status(s, cc_status);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. tensorflow/c/tf_status.cc

    #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)
Back to top