Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for sync (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. tensorflow/c/eager/c_api_remote_test.cc

      TestRemoteExecuteSilentCopiesOp(/*async=*/false, /*remote=*/true);
    }
    TEST(CAPI, RemoteExecuteSilentCopiesAsync) {
      TestRemoteExecuteSilentCopiesOp(/*async=*/true, /*remote=*/true);
    }
    TEST(CAPI, RemoteExecuteSilentCopiesLocal) {
      TestRemoteExecuteSilentCopiesOp(/*async=*/false, /*remote=*/false);
    }
    TEST(CAPI, RemoteExecuteSilentCopiesLocalAsync) {
      TestRemoteExecuteSilentCopiesOp(/*async=*/true, /*remote=*/false);
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 12 00:14:22 GMT 2020
    - 5.4K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_cluster_test.cc

      TFE_Execute(op, out_value, &num_retvals, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteOp(op);
      TF_DeleteStatus(status);
    }
    
    void TestRemoteExecuteChangeServerDef(bool async) {
      tensorflow::ServerDef server_def = GetServerDef(2);
    
      // This server def has the task index set to 0.
      string serialized = server_def.SerializeAsString();
    
      server_def.set_task_index(1);
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  7. tensorflow/c/env.cc

      auto* cc_file = reinterpret_cast<::tensorflow::WritableFile*>(handle);
      TF_SetStatus(status, TF_OK, "");
      ::tensorflow::Set_TF_Status_from_Status(status, cc_file->Sync());
    }
    
    void TF_FlushWritableFile(TF_WritableFileHandle* handle, TF_Status* status) {
      auto* cc_file = reinterpret_cast<::tensorflow::WritableFile*>(handle);
      TF_SetStatus(status, TF_OK, "");
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 7K bytes
    - Viewed (0)
  8. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      return TensorHandlePtr(result_handle);
    }
    
    void TestCollective(bool async) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      std::unique_ptr<TFE_ContextOptions, decltype(&TFE_DeleteContextOptions)> opts(
          TFE_NewContextOptions(), TFE_DeleteContextOptions);
      TFE_ContextOptionsSetAsync(opts.get(), async);
      std::unique_ptr<TF_Buffer, decltype(&TF_DeleteBuffer)> config(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  9. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util_test.cc

    #include "xla/pjrt/pjrt_c_api_client.h"
    #include "xla/pjrt/tfrt_cpu_pjrt_client.h"
    #include "xla/shape.h"
    #include "xla/shape_util.h"
    #include "tensorflow/core/framework/types.h"
    #include "tensorflow/core/tfrt/common/async_value_tensor.h"
    #include "tensorflow/core/tfrt/common/pjrt_util.h"
    #include "tsl/lib/core/status_test_util.h"
    #include "tsl/platform/casts.h"
    #include "tsl/platform/status_matchers.h"
    #include "tsl/protobuf/error_codes.pb.h"
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Mon Oct 30 19:20:20 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  10. 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)
Back to top