Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 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/c_api_experimental.h

    // is for performance optimization by reusing an exiting unused op rather than
    // creating a new op every time. If `raw_device_name` is `NULL` or empty, it
    // does not set the device name. If it's not `NULL`, then it attempts to parse
    // and set the device name. It's effectively `TFE_OpSetDevice`, but it is faster
    // than separately calling it because if the existing op has the same
    // `raw_device_name`, it skips parsing and just leave as it is.
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 39.5K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/grappler/grappler.h

        TF_GraphProperties* graph_properties);
    
    // Infer tensor shapes through abstract interpretation.
    // If assume_valid_feeds is true, it can help infer shapes in the fanout of fed
    // nodes. This may cause incorrectness in graph analyses, but is useful for
    // simulation or scheduling.
    // If aggressive_shape_inference is true, nodes are executed on the host to
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Aug 03 18:08:43 GMT 2022
    - 12.5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. tensorflow/c/eager/parallel_device/parallel_device_lib.h

      //
      // Attributes are forwarded to executed operations unmodified.
      //
      // The returned optional has a value if and only if `status` evaluates to
      // TF_OK. Bad statuses are forwarded from underlying `TFE_Execute` calls, or
      // if sanity checks on dtypes/metadata fail.
      absl::optional<std::vector<std::unique_ptr<ParallelTensor>>> Execute(
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Apr 25 15:21:13 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  8. tensorflow/c/c_api.h

    typedef struct TF_AttrMetadata {
      // A boolean: 1 if the attribute value is a list, 0 otherwise.
      unsigned char is_list;
    
      // Length of the list if is_list is true. Undefined otherwise.
      int64_t list_size;
    
      // Type of elements of the list if is_list != 0.
      // Type of the single value stored in the attribute if is_list == 0.
      TF_AttrType type;
    
      // Total size the attribute value.
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
  9. 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)
  10. 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)
Back to top