- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for TFE_NewCancellationManager (0.28 seconds)
-
tensorflow/c/eager/c_api_experimental_test.cc
TFE_MonitoringDeleteSampler2(sampler2); 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."; };
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Thu Oct 09 05:56:18 GMT 2025 - 31.5K bytes - Click Count (0) -
tensorflow/c/eager/c_api_experimental.h
typedef int64_t TFE_CancellationToken; 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*);Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Wed Feb 21 22:37:46 GMT 2024 - 39.5K bytes - Click Count (1) -
tensorflow/c/eager/c_api_experimental.cc
} void TFE_ContextOptionsSetTfrt(TFE_ContextOptions* options, bool use_tfrt) { options->use_tfrt = use_tfrt; } TFE_CancellationManager* TFE_NewCancellationManager() { return tensorflow::wrap(new tensorflow::CancellationManager); } void TFE_CancellationManagerStartCancel( TFE_CancellationManager* cancellation_manager) {
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 35.9K bytes - Click Count (0)