Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 91 for cc_status (0.38 sec)

  1. tensorflow/c/tf_status_helper_test.cc

    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);
      ASSERT_EQ(TSL_INVALID_ARGUMENT, TSL_GetCode(s));
      ASSERT_EQ(std::string("some error"), TSL_Message(s));
    
    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_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)
  3. 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)
  4. 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)
  5. tensorflow/c/env.cc

                     TF_Status* status) {
      ::tensorflow::FileStatistics cc_stats;
      TF_SetStatus(status, TF_OK, "");
      ::tensorflow::Status s =
          ::tensorflow::Env::Default()->Stat(filename, &cc_stats);
      ::tensorflow::Set_TF_Status_from_Status(status, s);
      if (s.ok()) {
        stats->length = cc_stats.length;
        stats->mtime_nsec = cc_stats.mtime_nsec;
        stats->is_directory = cc_stats.is_directory;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 7K bytes
    - Viewed (0)
  6. tensorflow/c/c_op_requires.h

          ::tensorflow::Set_TF_Status_from_Status(C_STATUS, _s);      \
          TF_OpKernelContext_Failure(CTX, C_STATUS);                  \
          TF_DeleteStatus(C_STATUS);                                  \
          return;                                                     \
        }                                                             \
      } while (0)
    
    #define TF_CLEANUP_AND_RETURN_IF_ERROR(C_STATUS, BUFFER, __VA_ARGS__) \
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 02 21:35:06 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/stream_executor/stream_executor_internal.h

      int VisibleDeviceCount() const override {
        int visible_device_count = 0;
        tensorflow::TF_StatusPtr c_status(TF_NewStatus());
        platform_fns_.get_device_count(&platform_, &visible_device_count,
                                       c_status.get());
        if (TF_GetCode(c_status.get()) != TF_OK) {
          LOG(ERROR) << TF_Message(c_status.get());
          return 0;
        }
        return visible_device_count;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 14 07:39:19 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/expiry/AllDaemonExpirationStrategyTest.groovy

            1 * c1.checkExpiration() >> { new DaemonExpirationResult(c1Status, "r1") }
            1 * c2.checkExpiration() >> { new DaemonExpirationResult(c2Status, "r2") }
    
            then:
            DaemonExpirationResult result = agg.checkExpiration()
            result.status == allStatus
            result.reason == "r1 and r2"
    
            where:
            c1Status         | c2Status         | allStatus
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  9. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/expiry/AnyDaemonExpirationStrategyTest.groovy

            when:
            1 * c1.checkExpiration() >> { new DaemonExpirationResult(c1Status, "r1") }
            1 * c2.checkExpiration() >> { new DaemonExpirationResult(c2Status, "r2") }
    
            then:
            DaemonExpirationResult result = agg.checkExpiration()
            result.status == anyStatus
            result.reason == reason
    
            where:
            c1Status         | c2Status         | anyStatus        | reason
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. src/main/resources/mail/es_status.dfmail

    Shinsuke Sugaya <******@****.***> 1477533782 +0900
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Oct 27 02:03:02 UTC 2016
    - 291 bytes
    - Viewed (0)
Back to top