- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for pair (0.18 sec)
-
tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc
lru_list_.push_front(key); lra_list_.push_front(key); new_entry->lru_iterator = lru_list_.begin(); new_entry->lra_iterator = lra_list_.begin(); new_entry->timestamp = timer_seconds_(); block_map_.emplace(std::make_pair(key, new_entry)); return new_entry; } // Remove blocks from the cache until we do not exceed our maximum size. void RamFileBlockCache::Trim() { while (!lru_list_.empty() && cache_size_ > max_bytes_) {
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Thu Jul 16 01:39:09 GMT 2020 - 11.1K bytes - Viewed (0) -
tensorflow/c/checkpoint_reader.cc
if (!status.ok()) out_tensor->reset(); } } if (!status.ok()) { tsl::Set_TF_Status_from_Status(out_status, status); } } std::pair<std::unique_ptr<TensorSliceReader::VarToShapeMap>, std::unique_ptr<TensorSliceReader::VarToDataTypeMap>> CheckpointReader::BuildV2VarMaps() { CHECK(v2_reader_ != nullptr); CHECK(v2_reader_->status().ok());
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri Aug 25 21:29:12 GMT 2023 - 5.5K bytes - Viewed (0) -
tensorflow/c/checkpoint_reader.h
private: // Uses "v2_reader_" to build "var name -> shape" and "var name -> data type" // maps; both owned by caller. // REQUIRES: "v2_reader_ != nullptr && v2_reader_.status().ok()". std::pair<std::unique_ptr<TensorSliceReader::VarToShapeMap>, std::unique_ptr<TensorSliceReader::VarToDataTypeMap> > BuildV2VarMaps(); // Invariant: exactly one of "reader_" and "v2_reader_" is non-null.
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Oct 12 08:49:52 GMT 2023 - 3.1K bytes - Viewed (0) -
tensorflow/c/c_test_util.h
bool GetAttrValue(TF_Operation* oper, const char* attr_name, tensorflow::AttrValue* attr_value, TF_Status* s); // Returns a sorted vector of std::pair<function_name, gradient_func> from // graph_def.library().gradient() std::vector<std::pair<string, string>> GetGradDefs( const tensorflow::GraphDef& graph_def); // Returns a sorted vector of names contained in `grad_def`
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Aug 09 01:06:53 GMT 2018 - 6K bytes - Viewed (0) -
tensorflow/c/eager/tape.h
// users want to compute multiple gradients over the same tape. explicit GradientTape(bool persistent) : persistent_(persistent) {} ~GradientTape() { for (const auto& pair : op_tape_) { pair.second.backward_function_deleter(pair.second.backward_function); } } // Returns whether any tensor in a list of tensors is being watched and has // a trainable dtype.
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/c_api.cc
} static bool TF_Run_Inputs(TF_Tensor* const* c_inputs, std::vector<std::pair<string, Tensor>>* input_pairs, TF_Status* status) { const int ninputs = input_pairs->size(); for (int i = 0; i < ninputs; ++i) { status->status = TF_TensorToTensorV1(c_inputs[i], &(*input_pairs)[i].second); if (!status->status.ok()) return false; } return true; }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 102.3K bytes - Viewed (0) -
tensorflow/c/c_test_util.cc
if (ret) ret = attr_value->ParseFromArray(buffer->data, buffer->length); TF_DeleteBuffer(buffer); return ret; } std::vector<std::pair<string, string>> GetGradDefs( const tensorflow::GraphDef& graph_def) { std::vector<std::pair<string, string>> grads; for (const tensorflow::GradientDef& grad : graph_def.library().gradient()) { grads.emplace_back(grad.function_name(), grad.gradient_func()); }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri Oct 15 03:16:52 GMT 2021 - 17.8K bytes - Viewed (2) -
tensorflow/c/c_api_function_test.cc
// output tensor naming, but it the index is actually an input index) struct EdgeSpec : public std::pair<string, string> { typedef std::pair<string, string> Base; // Inherit the set of constructors using Base::pair; string ToString() const { return strings::StrCat(first, "->", second); } }; class CApiFunctionTest : public ::testing::Test { protected:
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Jul 20 22:08:54 GMT 2023 - 63.6K bytes - Viewed (6) -
tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.h
/// The callback to read timestamps. const std::function<uint64_t()> timer_seconds_; /// \brief The key type for the file block cache. /// /// The file block cache key is a {filename, offset} pair. typedef std::pair<std::string, size_t> Key; /// \brief The state of a block. /// /// A block begins in the CREATED stage. The first thread will attempt to read
C - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Mon Aug 31 04:46:34 GMT 2020 - 10.6K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache.h
ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_) { lru_list_.push_front(key); Entry entry{timer_seconds_(), value, lru_list_.begin()}; auto insert = cache_.insert(std::make_pair(key, entry)); if (!insert.second) { lru_list_.erase(insert.first->second.lru_iterator); insert.first->second = entry; } else if (max_entries_ > 0 && cache_.size() > max_entries_) {
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)