Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for TFE_ExecutorWaitForAllPendingNodes (0.31 sec)

  1. tensorflow/c/eager/c_api_cluster_test.cc

      TFE_DeleteTensorHandle(h0_task0);
      TFE_DeleteTensorHandle(retvals[0]);
    
      TFE_DeleteOp(matmul);
    
      TFE_Executor* executor = TFE_ContextGetExecutorForThread(ctx);
      TFE_ExecutorWaitForAllPendingNodes(executor, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteExecutor(executor);
      TF_DeleteStatus(status);
    }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_experimental_test.cc

        ASSERT_TRUE(TF_GetCode(status) == TF_OK) << TF_Message(status);
        EXPECT_EQ(*reinterpret_cast<tensorflow::int32*>(TF_TensorData(r)), 42);
        TFE_ContextSetExecutorForThread(ctx, old_executor);
        TFE_ExecutorWaitForAllPendingNodes(executor, status);
        ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
        TFE_DeleteExecutor(executor);
        TFE_DeleteExecutor(old_executor);
        TFE_DeleteTensorHandle(h);
    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)
  3. tensorflow/c/eager/c_api_remote_test.cc

      TFE_DeleteTensorHandle(h1_task1);
      TFE_DeleteTensorHandle(retvals[0]);
    
      TFE_DeleteOp(matmul);
    
      TFE_Executor* executor = TFE_ContextGetExecutorForThread(ctx);
      TFE_ExecutorWaitForAllPendingNodes(executor, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteExecutor(executor);
      TFE_DeleteContext(ctx);
    
      TF_DeleteStatus(status);
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 12 00:14:22 GMT 2020
    - 5.4K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_test.cc

        TFE_ExecutorWaitForAllPendingNodes(executor, status);
        EXPECT_NE(TF_OK, TF_GetCode(status));
        TF_SetStatus(status, TF_OK, "");
        retvals[0] = nullptr;
        TFE_Execute(matmul2, &retvals[0], &num_retvals, status);
        EXPECT_NE(TF_OK, TF_GetCode(status));
        TFE_ExecutorClearError(executor);
        TFE_ExecutorWaitForAllPendingNodes(executor, status);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  5. tensorflow/c/eager/c_api_remote_test_util.cc

      }
      for (auto* h : handles_task2) {
        TFE_DeleteTensorHandle(h);
      }
    
      TFE_DeleteOp(matmul);
    
      TFE_Executor* executor = TFE_ContextGetExecutorForThread(ctx);
      TFE_ExecutorWaitForAllPendingNodes(executor, status);
      ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
      TFE_DeleteExecutor(executor);
      if (func) {
        TFE_ContextRemoveFunction(ctx, "MatMulFunction", status);
      }
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Dec 11 22:56:03 GMT 2020
    - 9.1K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_experimental.h

    TF_CAPI_EXPORT extern TFE_Executor* TFE_NewExecutor(
        bool is_async, bool enable_streaming_enqueue, int in_flight_nodes_limit);
    
    // Deletes the eager Executor without waiting for enqueued nodes. Please call
    // TFE_ExecutorWaitForAllPendingNodes before calling this API if you want to
    // make sure all nodes are finished.
    TF_CAPI_EXPORT extern void TFE_DeleteExecutor(TFE_Executor*);
    
    // Returns true if the executor is in async mode.
    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)
  7. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

        execution_state_ = ExecutionState::kShuttingDown;
      }
      start_execute_.notify_one();
    }
    
    void DeviceThread::AsyncWait(TF_Status* status) {
      tensorflow::mutex_lock l(execution_mutex_);
      TFE_ExecutorWaitForAllPendingNodes(executor_.get(), status);
      TFE_ExecutorClearError(executor_.get());
    }
    
    void DeviceThread::Run() {
      while (true) {
        {
          tensorflow::mutex_lock l(execution_mutex_);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  8. tensorflow/c/eager/c_api_distributed_test.cc

      EXPECT_EQ(sum, 6.0);
    
      TFE_DeleteTensorHandle(h0);
      TFE_DeleteTensorHandle(h1);
      TFE_DeleteTensorHandle(h2);
    
      TFE_Executor* executor = TFE_ContextGetExecutorForThread(ctx);
      TFE_ExecutorWaitForAllPendingNodes(executor, status);
      ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
      TFE_DeleteExecutor(executor);
      TFE_ContextRemoveFunction(ctx, "AddVariablesFunction", status);
      TFE_DeleteContext(ctx);
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_experimental.cc

    }
    
    void TFE_DeleteExecutor(TFE_Executor* executor) { delete executor; }
    
    bool TFE_ExecutorIsAsync(TFE_Executor* executor) {
      return executor->executor()->Async();
    }
    
    void TFE_ExecutorWaitForAllPendingNodes(TFE_Executor* executor,
                                            TF_Status* status) {
      status->status = executor->executor()->WaitForAllPendingNodes();
    }
    
    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)
Back to top