Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TFE_CancellationManagerIsCancelled (0.24 sec)

  1. tensorflow/c/eager/c_api_experimental_test.cc

      TFE_MonitoringDeleteBuckets(buckets);
      TF_DeleteStatus(status);
    }
    
    TEST(CAPI, CancellationManager) {
      TFE_CancellationManager* c_mgr = TFE_NewCancellationManager();
      EXPECT_FALSE(TFE_CancellationManagerIsCancelled(c_mgr));
    
      TFE_CancelCallback callback1;
      callback1.callback = [](void* context) {
        ADD_FAILURE() << "Callback1 should be deregistered.";
      };
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  2. tensorflow/c/eager/c_api_experimental.cc

    }
    
    void TFE_CancellationManagerStartCancel(
        TFE_CancellationManager* cancellation_manager) {
      tensorflow::unwrap(cancellation_manager)->StartCancel();
    }
    
    bool TFE_CancellationManagerIsCancelled(
        TFE_CancellationManager* cancellation_manager) {
      return tensorflow::unwrap(cancellation_manager)->IsCancelled();
    }
    
    bool TFE_CancellationManagerIsCancelling(
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
  3. tensorflow/c/eager/c_api_experimental.h

    typedef struct TFE_CancelCallback {
      void (*callback)(void* context);
      void* context;
    } TFE_CancelCallback;
    TF_CAPI_EXPORT extern TFE_CancellationManager* TFE_NewCancellationManager();
    TF_CAPI_EXPORT extern bool TFE_CancellationManagerIsCancelled(
        TFE_CancellationManager*);
    TF_CAPI_EXPORT extern bool TFE_CancellationManagerIsCancelling(
        TFE_CancellationManager*);
    TF_CAPI_EXPORT extern void TFE_CancellationManagerStartCancel(
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 39.5K bytes
    - Viewed (0)
Back to top