Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for it (0.14 sec)

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

          ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_) {
        auto it = cache_.find(key);
        if (it == cache_.end()) {
          return false;
        }
        lru_list_.erase(it->second.lru_iterator);
        if (timer_seconds_() - it->second.timestamp > max_age_) {
          cache_.erase(it);
          return false;
        }
        *value = it->second.value;
        lru_list_.push_front(it->first);
        it->second.lru_iterator = lru_list_.begin();
        return true;
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 19:31:22 GMT 2020
    - 6.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_unified_experimental.h

    // A TF_ExecutionContext stores knowledge about how to execute an operation.
    // E.g. it could know whether we're in eager mode or graph mode, keeps track
    // of gradient tapes, etc.
    typedef struct TF_ExecutionContext TF_ExecutionContext;
    
    // A TF_AbstractTensor is an input to an operation. E.g. it could be a union
    // type of eager and graph tensors. It is also the result of executing an
    // operation.
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Oct 24 11:27:00 GMT 2021
    - 7K bytes
    - Viewed (0)
  3. tensorflow/c/eager/immediate_execution_operation.h

      virtual ImmediateExecutionContext* GetContext() const = 0;
    
      // Following two methods are used to support custom device.
      // Return true if the inputs contain custom device tensor handle. It means
      // that the argument need to be handled by a custom device.
      virtual bool HasCustomDeviceInput() const = 0;
    
      virtual const tensorflow::OpDef* OpDef() const = 0;
    
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Sep 26 22:40:32 GMT 2022
    - 3.6K bytes
    - Viewed (0)
  4. tensorflow/c/env.h

    // caller is responsible for freeing it (see TF_CloseWritableFile).
    TF_CAPI_EXPORT extern void TF_NewWritableFile(const char* filename,
                                                  TF_WritableFileHandle** handle,
                                                  TF_Status* status);
    
    // Closes the given handle and frees its memory. If there was a problem closing
    // the file, it is indicated by status. Memory is freed in any case.
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sat Jan 09 02:53:27 GMT 2021
    - 9.6K bytes
    - Viewed (0)
  5. tensorflow/c/eager/abstract_context.h

      // clients from directly destroying this object since it may manage its own
      // lifetime through ref counting. Thus clients MUST call Release() in order to
      // destroy an instance of this class.
      virtual void Release() = 0;
    
      // Creates an operation builder and ties it to this context.
      // The returned object can be used for setting operation's attributes,
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Oct 24 11:16:58 GMT 2021
    - 3K bytes
    - Viewed (0)
  6. tensorflow/c/eager/parallel_device/parallel_device_testlib.h

      // Helper for constructing a resource handle and wrapping it in a `Variable`
      // object.
      static Variable* Create(TFE_Context* context, TF_DataType type,
                              const int64_t* dims, const int num_dims,
                              const char* device, TF_Status* status);
      // Dereferences the backing buffer for the variable. Note that since this can
      // fail (it runs operations), it must be called explicitly and the resulting
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Feb 09 01:12:35 GMT 2021
    - 6.9K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_test_util.h

                       const char* device_type);
    
    // Create a ServerDef with the given `job_name` and add `num_tasks` tasks in it.
    tensorflow::ServerDef GetServerDef(const tensorflow::string& job_name,
                                       int num_tasks);
    
    // Create a ServerDef with job name "localhost" and add `num_tasks` tasks in it.
    tensorflow::ServerDef GetServerDef(int num_tasks);
    
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Jul 17 23:43:59 GMT 2023
    - 7.7K bytes
    - Viewed (0)
  8. tensorflow/c/eager/parallel_device/parallel_device.h

    // and `underlying_devices` is
    //   {"/job:localhost/replica:0/task:0/device:GPU:0",
    //    "/job:localhost/replica:0/task:0/device:GPU:1"}
    // Then executing an operation on CUSTOM:0 will execute it on GPU:0 and GPU:1.
    //
    // Implicit copies onto `device_name` are allowed, replicating the value once
    // per device in `underlying_devices`. Implicit copies off of the device throw
    // an error.
    //
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jun 04 21:49:16 GMT 2020
    - 2.9K bytes
    - Viewed (0)
  9. tensorflow/c/c_test.c

    // just nice to know that it compiles.
    void* create(TF_OpKernelConstruction* ctx) {
      TF_DataType type;
      TF_Status* s = TF_NewStatus();
      TF_OpKernelConstruction_GetAttrType(ctx, "foobar", &type, s);
      TF_DeleteStatus(s);
      return NULL;
    }
    
    // A compute function. This will never actually get called in this test, it's
    // just nice to know that it compiles.
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Jan 15 17:51:26 GMT 2020
    - 2.8K bytes
    - Viewed (0)
  10. tensorflow/c/eager/abstract_operation.h

      // Release any underlying resources, including the interface object.
      //
      // WARNING: The destructor of this class is marked as protected to disallow
      // clients from directly destroying this object since it may manage it's own
      // lifetime through ref counting. Thus this must be allocated on the heap and
      // clients MUST call Release() in order to destroy an instance of this class.
      virtual void Release() = 0;
    
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Jul 14 16:20:41 GMT 2021
    - 6.8K bytes
    - Viewed (0)
Back to top