- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 30 for secunds (0.23 sec)
-
tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc
// This signals that the block is removed, and should not be inadvertently // reinserted into the cache in UpdateLRU. entry->second->timestamp = 0; lru_list_.erase(entry->second->lru_iterator); lra_list_.erase(entry->second->lra_iterator); cache_size_ -= entry->second->data.capacity(); block_map_.erase(entry); }
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/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc
// Reading at offset file_size + 4 will read the second block (since the read // at file_size + 4 = 28 will be aligned to an offset of 16) but will return // OutOfRange because the offset is past the end of the 24-byte file. Status status = ReadCache(&cache, "", file_size + 4, 4, &out); EXPECT_EQ(status.code(), error::OUT_OF_RANGE); EXPECT_TRUE(second_block); // Reading the second full block will return 8 bytes, from a cache hit.
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Fri Oct 15 03:16:57 GMT 2021 - 23.2K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc
// timestamp of the entry. cache.Insert(key, 41); env->SetNowSeconds(2); cache.Insert(key, 42); // 1 second after the most recent insertion, the entry is still valid. env->SetNowSeconds(3); int value = 0; EXPECT_TRUE(cache.Lookup(key, &value)); EXPECT_EQ(value, 42); // 2 seconds after the most recent insertion, the entry is no longer valid. env->SetNowSeconds(4); EXPECT_FALSE(cache.Lookup(key, &value));
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.cc
.insert(EncodeTensorNameSlice( string(v2_reader_->key()) /* full var's name */, TensorSlice(slice_proto))) .second); } } // Second pass: adds the entries, ignoring the filtered keys. std::unique_ptr<TensorSliceReader::VarToShapeMap> var_to_shape_map( new TensorSliceReader::VarToShapeMap);
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/eager/c_api_test.cc
tensorflow::AttrValueMap::const_iterator attr_found = attr_values.find("T"); EXPECT_NE(attr_found, attr_values.cend()); EXPECT_EQ(attr_found->second.list().type(0), tensorflow::DataType::DT_BOOL); EXPECT_EQ(attr_found->second.list().type(1), tensorflow::DataType::DT_FLOAT); EXPECT_EQ(attr_found->second.list().type(2), tensorflow::DataType::DT_INT32); TFE_TensorHandle* retvals[1] = {nullptr}; int num_retvals = 1;
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Aug 03 20:50:20 GMT 2023 - 94.6K bytes - Viewed (1) -
tensorflow/c/eager/parallel_device/BUILD
licenses = ["notice"], ) # Currently pybind extension shared objects must use only C API headers since # the C API has static initializers duplicated in the Python bindings. So we # need a second rule that omits .cc files, in # tensorflow/python:_pywrap_parallel_device. filegroup( name = "lib_headers", srcs = ["parallel_device_lib.h"], ) filegroup( name = "lib_sources",
Plain Text - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 01 20:19:06 GMT 2024 - 4.8K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/nn_grad_test.cc
"SparseSoftmaxCrossEntropyWithLogits")); // `gradient_checker` only works with model that returns only 1 tensor. // Although, `ops::SparseSoftmaxCrossEntropyWithLogits` returns 2 tensors, the // second tensor isn't needed for computing gradient so we could safely drop // it. outputs[0] = loss; backprop->Unref(); return absl::OkStatus(); } Status BiasAddModel(AbstractContext* ctx,
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Wed Feb 28 13:53:47 GMT 2024 - 8.3K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental_test.cc
TF_DeleteAbstractOp(add_op); // Extract the resulting tensor. add_output1 = TF_OutputListGet(add_outputs, 0); TF_DeleteOutputList(add_outputs); } // Same with a second "Add" computing `arg1 + arg1`. TF_AbstractTensor* add_output2; { // Build an abstract operation, inputs and output. auto* add_op = TF_NewAbstractOp(graph_ctx); TF_AbstractOpSetOpType(add_op, "Add", s);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri May 19 21:44:52 GMT 2023 - 39.1K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache.h
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/c_test_util.cc
if (attr.first == "dtype") { if (attr.second.type() == tensorflow::DT_INT32) { found_dtype = true; } else { return false; } } else if (attr.first == "value") { if (attr.second.has_tensor() && attr.second.tensor().int_val_size() == 1 && attr.second.tensor().int_val(0) == v) { found_value = true; } else {
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)