Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for calls (0.24 sec)

  1. tensorflow/c/experimental/filesystem/plugins/gcs/cleanup.h

    // but there's rarely a reason to do that.
    //
    // You can call 'release()' on a Cleanup object to cancel the cleanup.
    
    #ifndef TENSORFLOW_C_EXPERIMENTAL_FILESYSTEM_PLUGINS_GCS_CLEANUP_H_
    #define TENSORFLOW_C_EXPERIMENTAL_FILESYSTEM_PLUGINS_GCS_CLEANUP_H_
    
    #include <type_traits>
    #include <utility>
    
    namespace tf_gcs_filesystem {
    
    // A move-only RAII object that calls a stored cleanup functor when
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 11:16:00 GMT 2020
    - 3.4K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      std::list<size_t> calls;
      auto fetcher = [&calls, block_size](const string& filename, size_t offset,
                                          size_t n, char* buffer,
                                          TF_Status* status) -> int64_t {
        EXPECT_EQ(n, block_size);
        EXPECT_FALSE(calls.empty()) << "at offset = " << offset;
        if (!calls.empty()) {
          EXPECT_EQ(offset, calls.front());
          calls.pop_front();
        }
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:57 GMT 2021
    - 23.2K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc

    TEST(ExpiringLRUCacheTest, LookupOrCompute) {
      // max_age of 0 means we should always compute.
      uint64 num_compute_calls = 0;
      tf_gcs_filesystem::ExpiringLRUCache<int>::ComputeFunc compute_func =
          [&num_compute_calls](const string& key, int* value, TF_Status* status) {
            *value = num_compute_calls;
            num_compute_calls++;
            return TF_SetStatus(status, TF_OK, "");
          };
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 19:31:22 GMT 2020
    - 7.1K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api.h

    // Clears the internal caches in the TFE context. Useful when reseeding random
    // ops.
    TF_CAPI_EXPORT extern void TFE_ContextClearCaches(TFE_Context* ctx);
    
    // Sets a thread-local device placement policy. After this call, other calls to
    // TFE_Execute in the same thread will use the device policy specified here
    // instead of the device policy used to construct the context. This has no
    // effect on the device policy used by other program threads.
    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)
  5. tensorflow/c/eager/abstract_operation.h

      // it will be compatible with it: the name will be updated by device placement
      // logic to refer to the specific device chosen.
      //
      // Example: If one calls `op->SetDeviceName("/device:GPU")`, the value
      // returned by DeviceName should be "/device:GPU:*" until a particular GPU is
      // chosen for the operation by the device placement logic in the
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Jul 14 16:20:41 GMT 2021
    - 6.8K bytes
    - Viewed (0)
  6. tensorflow/c/eager/tfe_context_internal.h

    // Wraps a pointer to a context implementation.
    //
    // WARNING: Since the underlying object could be ref-counted a user of this
    // interface cannot destruct the underlying context object. Instead, call
    // TFE_DeleteContext who calls Release() on the context pointer and deletes
    // the TFE_Context structure.
    typedef struct TFE_Context TFE_Context;
    
    namespace tensorflow {
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Jun 17 19:39:13 GMT 2020
    - 1.4K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/modular_filesystem.cc

    #include "tensorflow/core/platform/env.h"
    #include "tensorflow/core/platform/file_system_helper.h"
    #include "tsl/platform/errors.h"
    
    // TODO(b/139060984): After all filesystems are converted, all calls to
    // methods from `FileSystem` will have to be replaced to calls to private
    // methods here, as part of making this class a singleton and the only way to
    // register/use filesystems.
    
    namespace tensorflow {
    
    using UniquePtrTo_TF_Status =
    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)
  8. tensorflow/c/c_api.cc

    // --------------------------------------------------------------------------
    TF_SessionOptions* TF_NewSessionOptions() {
      TF_SessionOptions* out = new TF_SessionOptions;
      // Disable optimizations for static graph to allow calls to Session::Extend.
      out->options.config.mutable_experimental()
          ->set_disable_optimize_for_static_graph(true);
      return out;
    }
    void TF_DeleteSessionOptions(TF_SessionOptions* opt) { delete opt; }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  9. tensorflow/c/eager/immediate_execution_distributed_manager.h

                                                int keep_alive_secs) = 0;
    
      // Set up a multi-client distributed execution environment. Must be called
      // on all tasks in the cluster. This call internally coordinates with other
      // tasks to initialize the eager context and TF server for multi-client
      // execution.
      virtual Status EnableCollectiveOps(const ServerDef& server_def) = 0;
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  10. tensorflow/c/c_api.h

        // Output status
        TF_Status*);
    
    // Set up the graph with the intended feeds (inputs) and fetches (outputs) for a
    // sequence of partial run calls.
    //
    // On success, returns a handle that is used for subsequent PRun calls. The
    // handle should be deleted with TF_DeletePRunHandle when it is no longer
    // needed.
    //
    // On failure, out_status contains a tensorflow::Status with an error
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
Back to top