Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for sync (0.3 sec)

  1. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      ops_->flush(file_.get(), plugin_status.get());
      return StatusFromTF_Status(plugin_status.get());
    }
    
    Status ModularWritableFile::Sync() {
      if (ops_->sync == nullptr) return Flush();
    
      UniquePtrTo_TF_Status plugin_status(TF_NewStatus(), TF_DeleteStatus);
      ops_->sync(file_.get(), plugin_status.get());
      return StatusFromTF_Status(plugin_status.get());
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api.h

      TFE_DEVICE_PLACEMENT_SILENT_FOR_INT32 = 3,
    } TFE_ContextDevicePlacementPolicy;
    // LINT.ThenChange(//tensorflow/c/eager/immediate_execution_context.h)
    
    // Sets the default execution mode (sync/async). Note that this can be
    // overridden per thread using TFE_ContextSetExecutorForThread.
    TF_CAPI_EXPORT extern void TFE_ContextOptionsSetAsync(TFE_ContextOptions*,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 22.8K bytes
    - Viewed (1)
  3. ci/official/upload.sh

    # "/path/bar". This script uses "gsutil rsync" instead, which acts on directory
    # contents. About arguments to gsutil:
    # "gsutil -m rsync" runs in parallel.
    # "gsutil rsync -r" is recursive and makes directories work.
    # "gsutil rsync -d" is "sync and delete files from destination if not present in source"
    
    DOWNLOADS="$(mktemp -d)"
    mkdir -p "$DOWNLOADS"
    gsutil -m rsync -r "$TFCI_ARTIFACT_STAGING_GCS_URI" "$DOWNLOADS"
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Jan 24 20:52:12 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.h

    void Append(const TF_WritableFile* file, const char* buffer, size_t n,
                TF_Status* status);
    int64_t Tell(const TF_WritableFile* file, TF_Status* status);
    void Flush(const TF_WritableFile* file, TF_Status* status);
    void Sync(const TF_WritableFile* file, TF_Status* status);
    void Close(const TF_WritableFile* file, TF_Status* status);
    }  // namespace tf_writable_file
    
    namespace tf_read_only_memory_region {
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 04:37:41 GMT 2020
    - 5.2K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

      if (fflush(posix_file->handle) != 0)
        TF_SetStatusFromIOError(status, errno, posix_file->filename);
    }
    
    static void Sync(const TF_WritableFile* file, TF_Status* status) {
      // For historical reasons, this does the same as `Flush` at the moment.
      // TODO(b/144055243): This should use `fsync`/`sync`.
      Flush(file, status);
    }
    
    static void Close(const TF_WritableFile* file, TF_Status* status) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_test.cc

      if (forward_input) {
        TFE_DeleteTensorHandle(n);
      }
    
      int num_retvals = 1;
      if (async) {
        // Enqueue dummy ops so we backlog async execution & actually test async.
        // This is usually unnecessary, but we've experienced the occasional test
        // failure when testing async mode with no explicit forwarding.
        for (int i = 0; i < 100000; ++i) {
          TFE_Op* add_op_dummy = AddOp(ctx, m, m);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  7. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

                            const int in_flight_nodes_limit)
          : status_(TF_NewStatus()),
            // If the context's default exector is set to async, re-using that in
            // each thread would cause collectives to deadlock. For consistency we
            // create a new sync executor for every thread.
            //
            // TODO(allenl): We should have an async API that works with the
    C++
    - Registered: Tue Apr 30 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

      TFE_TensorHandle* h0 = TestVariable(ctx, 1.0, task1_name);
      TFE_TensorHandle* h1 = TestVariable(ctx, 2.0, task2_name);
      TFE_TensorHandle* h2 = TestVariable(ctx, 3.0, task0_name);
    
      // Add a sync point to make sure that variables have been initialized
      // before the function execution starts.
      TFE_ContextAsyncWait(ctx, status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
    C++
    - Registered: Tue Apr 30 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_test.cc

      ASSERT_TRUE(TF_GetCode(status) == TF_OK) << TF_Message(status);
      TF_DeleteFunction(fn);
    
      for (bool async : {false, true, false}) {
        TFE_Executor* old_executor = TFE_ContextGetExecutorForThread(ctx);
        TFE_Executor* executor = TFE_NewExecutor(
            /*is_async=*/async, /*enable_streaming_enqueue=*/true,
            /*in_flight_nodes_limit=*/0);
        TFE_ContextSetExecutorForThread(ctx, executor);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  10. tensorflow/c/eager/c_api_remote_test_util.h

    // which creates a remote input, to simulate a scenario that the remote input
    // is not ready when we start running an op or a function.
    void TestRemoteExecuteSilentCopies(bool async, bool remote, bool func,
                                       bool heavy_load_on_streaming_rpc,
                                       bool remote_func_outputs = false,
                                       bool has_packed_input = false);
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Dec 11 22:56:03 GMT 2020
    - 1.4K bytes
    - Viewed (0)
Back to top