- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 41 for seconds (0.23 sec)
-
tensorflow/c/experimental/next_pluggable_device/c_api.cc
TF_Buffer* TF_CoordinationServiceGetKeyValueWithTimeout( const char* key, int64_t key_size, int64_t timeout_seconds, TF_CoordinationServiceAgent* agent, TF_Status* status) { if (timeout_seconds <= 0) { status->status = absl::InvalidArgumentError( "TF_CoordinationServiceGetKeyValueWithTimeout invoked with invalid " "timeout_seconds <= 0."); return nullptr; }
C++ - Registered: Tue Feb 27 12:39:08 GMT 2024 - Last Modified: Tue Jan 09 00:52:04 GMT 2024 - 13.9K bytes - Viewed (1) -
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/eager/parallel_device/parallel_device_remote_test.cc
const char* first_device = "/job:worker/replica:0/task:1/device:CPU:0"; const char* second_device = "/job:worker/replica:0/task:2/device:CPU:0"; const char* device_name = "/job:localhost/replica:0/task:0/device:CUSTOM:0"; std::array<const char*, 2> underlying_devices{first_device, second_device}; RegisterParallelDevice(context.get(), device_name, underlying_devices, status.get());
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Apr 27 22:09:57 GMT 2023 - 6.7K 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/c_api.cc
auto iter = name_ranges.find(arg_name); if (iter == name_ranges.end()) { status->status = InvalidArgument("Output arg '", arg_name, "' not found"); return -1; } return iter->second.second - iter->second.first; } int TF_OperationNumInputs(TF_Operation* oper) { return oper->node.num_inputs(); } TF_DataType TF_OperationInputType(TF_Input oper_in) {
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/env.h
TF_CAPI_EXPORT extern uint64_t TF_NowNanos(void); // Returns the number of microseconds since the Unix epoch. TF_CAPI_EXPORT extern uint64_t TF_NowMicros(void); // Returns the number of seconds since the Unix epoch. TF_CAPI_EXPORT extern uint64_t TF_NowSeconds(void); // Populates a TF_ThreadOptions struct with system-default values. TF_CAPI_EXPORT extern void TF_DefaultThreadOptions(TF_ThreadOptions* options);
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Sat Jan 09 02:53:27 GMT 2021 - 9.6K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental.cc
GetFactories()[name] = factory; } Status SetDefaultTracingEngine(const char* name) { auto entry = GetFactories().find(name); if (entry != GetFactories().end()) { default_factory = GetFactories().find(name)->second; return absl::OkStatus(); } string msg = absl::StrCat( "No tracing engine factory has been registered with the key '", name, "' (available: ");
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Feb 15 09:49:45 GMT 2024 - 9K 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/eager/parallel_device/parallel_device_test.cc
std::string first_device = TFE_TensorHandleBackingDeviceName( second_components[0].get(), status.get()); ASSERT_EQ(second_underlying_devices[0], first_device); std::string second_device = TFE_TensorHandleBackingDeviceName( second_components[1].get(), status.get()); ASSERT_EQ(second_underlying_devices[1], second_device); // Un-pack the first parallel device's tensor too
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Jul 08 23:47:35 GMT 2021 - 29.3K bytes - Viewed (1) -
tensorflow/c/eager/parallel_device/parallel_device_testlib.cc
TFE_TensorHandle* second, TF_Status* status) { std::unique_ptr<TFE_Op, decltype(&TFE_DeleteOp)> op( TFE_NewOp(context, "Mul", status), TFE_DeleteOp); if (TF_GetCode(status) != TF_OK) return nullptr; TFE_OpAddInput(op.get(), first, status); if (TF_GetCode(status) != TF_OK) return nullptr; TFE_OpAddInput(op.get(), second, status); if (TF_GetCode(status) != TF_OK) return nullptr;
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Jun 15 15:44:44 GMT 2021 - 12.5K bytes - Viewed (0)