- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for templates (6.21 sec)
-
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) -
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) -
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) -
tensorflow/c/eager/c_api_experimental.h
// TODO(fishx): Move these monitoring APIs into a separate file. // ----------------------------------------------------------------------------- // Monitoring Counter APIs. // These APIs de-templated monitoring Counter for swig. typedef struct TFE_MonitoringCounterCell TFE_MonitoringCounterCell; // Atomically increments the value of the cell. The value must be non-negative.
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Feb 21 22:37:46 GMT 2024 - 39.5K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_testlib.h
// `first_device` and `second_device`. void BasicTestsForTwoDevices(TFE_Context* context, const char* first_device, const char* second_device); // Implementations of templated functions ****************************** template <std::size_t num_replicas> TensorHandlePtr CreatePerDeviceValues( TFE_Context* context, const std::array<TFE_TensorHandle*, num_replicas>& components,
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) -
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) -
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) -
tensorflow/c/eager/tape.h
// (also known as adjoint function) to compute, given downstream gradients, // upstream gradients. // // TODO(apassos) provide concrete template instantiations for TFE_TensorHandle // specialization, which is blocked by quite a few things needing to loop back // into python now. template <typename Gradient, typename BackwardFunction, typename TapeTensor> class VSpace { public: virtual ~VSpace() {}
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) -
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) -
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)