Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for if (0.14 sec)

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

      /// Look up the entry with key `key` and copy it to `value` if found. If not
      /// found, call `compute_func`. If `compute_func` set `status` to `TF_OK`,
      /// store a copy of the output parameter in the cache, and another copy in
      /// `value`.
      void LookupOrCompute(const std::string& key, T* value,
                           const ComputeFunc& compute_func, TF_Status* status) {
        if (max_age_ == 0) {
          return compute_func(key, value, status);
    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/immediate_execution_operation.h

                              ImmediateExecutionTensorHandle* input) = 0;
    
      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)
  3. tensorflow/c/eager/gradient_checker.h

    namespace tensorflow {
    namespace gradients {
    
    /* Returns numerical grad inside `dtheta_approx` given `forward` model and
     * parameter specified by `input_index`.
     *
     * I.e. if y = <output of the forward model> and w = inputs[input_index],
     * this will calculate dy/dw numerically.
     *
     * `use_function` indicates whether to use graph mode(true) or eager(false).
     *
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Dec 11 02:34:32 GMT 2020
    - 1.8K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_unified_experimental.h

    // Append a tensor at the end of the output list, growing its size by one.
    void TF_OutputListPushBack(TF_OutputList* o, TF_AbstractTensor* tensor,
                               TF_Status*);
    
    // TF_ExecuteOperation will, if in eager mode, execute, if in graph mode, maybe
    // capture some inputs and then add a node in the graph. The output tensors are
    // returned through the provided TF_OutputList.
    // Any active tape will observe the effects of this execution.
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Oct 24 11:27:00 GMT 2021
    - 7K bytes
    - Viewed (0)
  5. tensorflow/c/env.h

    // it. This is accomplished by traversing the directory tree rooted at dirname
    // and deleting entries as they are encountered.
    //
    // If dirname itself is not readable or does not exist, *undeleted_dir_count is
    // set to 1, *undeleted_file_count is set to 0 and an appropriate status (e.g.
    // TF_NOT_FOUND) is returned.
    //
    // If dirname and all its descendants were successfully deleted, TF_OK is
    // returned and both error counters are set to zero.
    //
    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)
  6. tensorflow/c/experimental/filesystem/plugins/posix/copy_file.h

    #include <sys/stat.h>
    
    namespace tf_posix_filesystem {
    
    // Transfers up to `size` bytes from `dst_fd` to `src_fd`.
    //
    // This method uses `sendfile` if available (i.e., linux 2.6.33 or later) or an
    // intermediate buffer if not.
    //
    // Returns number of bytes transferred or -1 on failure.
    int CopyFileContents(int dst_fd, int src_fd, off_t size);
    
    }  // namespace tf_posix_filesystem
    
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.2K bytes
    - Viewed (0)
  7. tensorflow/c/eager/parallel_device/parallel_device_testlib.h

          TFE_NewOp(context, "TPUReplicatedInput", status), TFE_DeleteOp);
      if (TF_GetCode(status) != TF_OK) return nullptr;
      TFE_OpSetAttrInt(op.get(), "N", num_replicas);
      for (int i = 0; i < num_replicas; ++i) {
        TFE_OpAddInput(op.get(), components[i], status);
        if (TF_GetCode(status) != TF_OK) return nullptr;
      }
      TFE_OpSetDevice(op.get(), device, status);
      if (TF_GetCode(status) != TF_OK) return nullptr;
    
    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)
  8. tensorflow/c/eager/abstract_context.h

      virtual Status RemoveFunction(const string& func) = 0;
    
     private:
      const AbstractContextKind kind_;
    };
    
    namespace internal {
    struct AbstractContextDeleter {
      void operator()(AbstractContext* p) const {
        if (p != nullptr) {
          p->Release();
        }
      }
    };
    }  // namespace internal
    
    using AbstractContextPtr =
        std::unique_ptr<AbstractContext, internal::AbstractContextDeleter>;
    
    }  // namespace tensorflow
    
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Oct 24 11:16:58 GMT 2021
    - 3K bytes
    - Viewed (0)
  9. tensorflow/c/eager/parallel_device/parallel_device.h

    // Allocate a parallel device named `device_name` which forwards operations to
    // `underlying_devices`, maintaining "parallel tensors" with components placed
    // on each underlying device.
    //
    // For example if `device_name` is
    //   "/job:localhost/replica:0/task:0/device:CUSTOM:0"
    // and `underlying_devices` is
    //   {"/job:localhost/replica:0/task:0/device:GPU:0",
    //    "/job:localhost/replica:0/task:0/device:GPU:1"}
    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)
  10. tensorflow/c/eager/c_api_test_util.h

    TFE_TensorHandle* TestAxisTensorHandle(TFE_Context* ctx);
    
    // Return an op taking minimum of `input` long `axis` dimension.
    TFE_Op* MinOp(TFE_Context* ctx, TFE_TensorHandle* input,
                  TFE_TensorHandle* axis);
    
    // If there is a device of type `device_type`, returns true
    // and sets 'device_name' accordingly.
    // `device_type` must be either "GPU" or "TPU".
    bool GetDeviceName(TFE_Context* ctx, tensorflow::string* device_name,
    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)
Back to top