Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for template (0.29 sec)

  1. tensorflow/c/eager/parallel_device/parallel_device_testlib.h

    // Helper to un-pack `num_replicas` TFE_TensorHandles from one parallel handle.
    template <std::size_t num_replicas>
    void ExtractPerDeviceValues(
        TFE_Context* context, TFE_TensorHandle* input,
        std::array<TensorHandlePtr, num_replicas>* components, TF_Status* status);
    
    // Helper to pack `num_replicas` TFE_TensorHandles into one parallel handle.
    template <std::size_t num_replicas>
    TensorHandlePtr CreatePerDeviceValues(
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 09 01:12:35 GMT 2021
    - 6.9K bytes
    - Viewed (0)
  2. tensorflow/c/eager/tfe_monitoring_internal.h

    #include "tensorflow/core/lib/monitoring/sampler.h"
    #include "tensorflow/core/platform/types.h"
    
    struct TFE_MonitoringCounterCell {
      tensorflow::monitoring::CounterCell cell;
    };
    
    template <int NumLabels>
    struct TFE_MonitoringCounter {
      template <typename... LabelDesc>
      TFE_MonitoringCounter(const char* name, const char* description,
                            LabelDesc&&... label) {
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 5.2K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/cleanup.h

    namespace tf_gcs_filesystem {
    
    // A move-only RAII object that calls a stored cleanup functor when
    // destroyed. Cleanup<F> is the return type of gtl::MakeCleanup(F).
    template <typename F>
    class Cleanup {
     public:
      Cleanup() : released_(true), f_() {}
    
      template <typename G>
      explicit Cleanup(G&& f)          // NOLINT
          : f_(std::forward<G>(f)) {}  // NOLINT(build/c++11)
    
      Cleanup(Cleanup&& src)  // NOLINT
    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)
  4. tensorflow/c/eager/c_api_test_util.h

    TFE_TensorHandle* TestTensorHandleWithDimsInt(TFE_Context* ctx, int data[],
                                                  int64_t dims[], int num_dims);
    
    // Return a tensor handle with given type, values and dimensions.
    template <class T, TF_DataType datatype>
    TFE_TensorHandle* TestTensorHandleWithDims(TFE_Context* ctx, const T* data,
                                               const int64_t* dims, int num_dims) {
      TF_Status* status = TF_NewStatus();
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Jul 17 23:43:59 GMT 2023
    - 7.7K bytes
    - Viewed (0)
  5. tensorflow/c/eager/parallel_device/parallel_device_lib.h

                                                           TF_Status* status) const;
    
      // Construct a parallel tensor consisting of the scalar values from `values`.
      template <typename DataType>
      std::unique_ptr<ParallelTensor> ScalarsFromSequence(
          absl::Span<const DataType> values, TFE_Context* context,
          TF_Status* status) const;
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 25 15:21:13 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  6. tensorflow/c/eager/tape.h

            return true;
          }
        }
      }
      return false;
    }
    
    template <typename Gradient, typename BackwardFunction, typename TapeTensor>
    void GradientTape<Gradient, BackwardFunction, TapeTensor>::Watch(
        int64_t tensor_id) {
      tensor_tape_.emplace(tensor_id, -1);
    }
    
    template <typename Gradient, typename BackwardFunction, typename TapeTensor>
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 02 12:40:29 GMT 2024
    - 47.2K bytes
    - Viewed (1)
  7. tensorflow/c/eager/abstract_operation.h

      std::vector<const char*> raw_strs;
      std::vector<size_t> lengths;
      raw_strs.reserve(values.size());
      lengths.reserve(values.size());
      for (const auto& s : values) {
        raw_strs.emplace_back(s.data());
        lengths.emplace_back(s.size());
      }
      return SetAttrStringList(attr_name,
                               reinterpret_cast<const void**>(raw_strs.data()),
                               lengths.data(), values.size());
    }
    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)
  8. tensorflow/c/eager/unified_api_testutil.h

                    absl::Span<AbstractTensorHandle*> outputs, bool use_function);
    
    Status BuildImmediateExecutionContext(bool use_tfrt, AbstractContext** ctx);
    
    // Return a tensor handle with given type, values and dimensions.
    template <class T, TF_DataType datatype>
    Status TestTensorHandleWithDims(AbstractContext* ctx, const T* data,
                                    const int64_t* dims, int num_dims,
                                    AbstractTensorHandle** tensor) {
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 4K bytes
    - Viewed (0)
  9. tensorflow/c/eager/tfe_monitoring_reader_internal.h

    struct TFE_MonitoringCounterReader {
      explicit TFE_MonitoringCounterReader(const char* name) {
        counter = std::make_unique<
            ::tensorflow::monitoring::testing::CellReader<int64_t>>(name);
      }
      template <typename... LabelType>
      int64_t Read(const LabelType&... labels);
      std::unique_ptr<::tensorflow::monitoring::testing::CellReader<int64_t>>
          counter;
    };
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 20 03:14:47 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache.h

    namespace tf_gcs_filesystem {
    
    /// \brief An LRU cache of string keys and arbitrary values, with configurable
    /// max item age (in seconds) and max entries.
    ///
    /// This class is thread safe.
    template <typename T>
    class ExpiringLRUCache {
     public:
      /// A `max_age` of 0 means that nothing is cached. A `max_entries` of 0 means
      /// that there is no limit on the number of entries in the cache (however, if
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 19:31:22 GMT 2020
    - 6.3K bytes
    - Viewed (0)
Back to top