- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 53 for Meleti (0.19 sec)
-
tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc
EXPECT_FALSE(cache.Lookup("d", &value)); } TEST(ExpiringLRUCacheTest, Delete) { // Insert an entry. tf_gcs_filesystem::ExpiringLRUCache<int> cache(1, 4); cache.Insert("a", 1); int value = 0; EXPECT_TRUE(cache.Lookup("a", &value)); EXPECT_EQ(value, 1); // Delete the entry. EXPECT_TRUE(cache.Delete("a")); EXPECT_FALSE(cache.Lookup("a", &value)); // Try deleting the entry again.
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Jul 09 19:31:22 GMT 2020 - 7.1K bytes - Viewed (0) -
tensorflow/c/checkpoint_reader.h
std::unique_ptr<TensorSliceReader::VarToShapeMap> var_to_shape_map_; std::unique_ptr<TensorSliceReader::VarToDataTypeMap> var_to_data_type_map_; CheckpointReader(const CheckpointReader&) = delete; void operator=(const CheckpointReader&) = delete; }; } // namespace checkpoint } // namespace tensorflow
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/experimental/filesystem/modular_filesystem.cc
TransactionToken* token) { if (ops_->delete_file == nullptr) return errors::Unimplemented(tensorflow::strings::StrCat( "Filesystem for ", fname, " does not support DeleteFile()")); UniquePtrTo_TF_Status plugin_status(TF_NewStatus(), TF_DeleteStatus); std::string translated_name = TranslateName(fname); ops_->delete_file(filesystem_.get(), translated_name.c_str(),
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Sep 06 19:12:29 GMT 2023 - 23.1K bytes - Viewed (0) -
tensorflow/c/c_api_internal.h
// TF_Graph may only / must be deleted when // sessions.size() == 0 && delete_requested == true // // TODO(b/74949947): mutations currently trigger a warning instead of a bad // status, this should be reverted when possible. tensorflow::gtl::FlatMap<TF_Session*, tensorflow::string> sessions TF_GUARDED_BY(mu); bool delete_requested TF_GUARDED_BY(mu); // set true by TF_DeleteGraph
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Sat May 13 00:49:12 GMT 2023 - 7.6K bytes - Viewed (0) -
tensorflow/c/eager/c_api_debug.cc
if (!status->status.ok()) { return nullptr; } return new TFE_TensorDebugInfo(dev_dims); } TF_CAPI_EXPORT extern void TFE_DeleteTensorDebugInfo( TFE_TensorDebugInfo* debug_info) { delete debug_info; } TF_CAPI_EXPORT extern int TFE_TensorDebugInfoOnDeviceNumDims( TFE_TensorDebugInfo* debug_info) { return debug_info->dev_dims.size(); }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Aug 11 01:20:50 GMT 2021 - 2.5K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/tape/tape_operation.cc
tape_(tape), registry_(registry) { // TODO(b/172003047): Consider making AbstractOperation RefCounted. // parent_op_->Ref(); } void TapeOperation::Release() { // TODO(srbs): Change to Unref(). delete this; } TapeOperation::~TapeOperation() { // TODO(b/172003047): Consider making AbstractOperation RefCounted. // parent_op->Unref(); } Status TapeOperation::Reset(const char* op, const char* raw_device_name) {
C++ - Registered: Tue Feb 27 12:39:08 GMT 2024 - Last Modified: Tue Jun 07 01:53:35 GMT 2022 - 9K bytes - Viewed (1) -
tensorflow/c/eager/c_api_experimental_test.cc
static_cast<const float*>(TF_TensorData(resolved)); EXPECT_EQ(0, memcmp(m_float, resolved_data, 4 * sizeof(float))); TF_DeleteTensor(resolved); TFE_DeleteTensorHandle(copy_aliased); // Note that this will delete copy. TFE_DeleteTensorHandle(on_host); } TF_DeleteDeviceList(devices); TF_DeleteTensor(m_data); TFE_DeleteTensorHandle(m); TFE_DeleteContext(ctx); TF_DeleteStatus(status); }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Aug 03 03:14:26 GMT 2023 - 31.5K bytes - Viewed (1) -
tensorflow/c/c_api_test.cc
for (int64_t i = 0; i < num_dims; ++i) { num_elements *= dims[i]; } TF_Tensor* t = TF_AllocateTensor(TF_STRING, dims, num_dims, sizeof(TF_TString) * num_elements); delete[] dims; TF_TString* data = static_cast<TF_TString*>(TF_TensorData(t)); for (int i = 0; i < batch_size; ++i) { TF_TString_Init(&data[i]);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 96.9K bytes - Viewed (3) -
tensorflow/c/c_api.cc
TF_Graph* const graph = s->graph; if (graph != nullptr) { graph->mu.lock(); graph->sessions.erase(s); const bool del = graph->delete_requested && graph->sessions.empty(); graph->mu.unlock(); if (del) delete graph; } delete s->session; delete s; } void TF_SessionRun(TF_Session* session, const TF_Buffer* run_options,
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/api_template.__init__.py
importlib.import_module("tf_keras.src.optimizers") else: importlib.import_module("keras.src.optimizers") except (ImportError, AttributeError): pass del importlib # Delete modules that should be hidden from dir(). # Don't fail if these modules are not available. # For e.g. this file will be originally placed under tensorflow/_api/v1 which
Python - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Mar 05 06:27:59 GMT 2024 - 6.7K bytes - Viewed (3)