- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for components (0.21 sec)
-
tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc
std::array<TensorHandlePtr, 2> out_components; ExtractPerDeviceValues(context.get(), multiply_result.get(), &out_components, status.get()); ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get()); ExpectScalarEq<float>(out_components[0].get(), 9.); ExpectScalarEq<float>(out_components[1].get(), 4.); } worker_server1.release();
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Thu Apr 27 22:09:57 GMT 2023 - 6.7K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_lib.cc
TFE_TensorHandleGetStatus(components[0].get(), status); if (!status->status.ok()) { return nullptr; } TF_DataType dtype = TFE_TensorHandleDataType(components[0].get()); // Verify that the combined TensorHandle's dtype matches all of the component // dtypes. for (TensorHandlePtr& component : components) { TFE_TensorHandleGetStatus(component.get(), status); if (!status->status.ok()) { return nullptr;
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Fri Feb 09 07:47:20 GMT 2024 - 25.4K bytes - Viewed (1) -
tensorflow/c/eager/parallel_device/parallel_device_test.cc
components[0] = negative_one_cpu.get(); components[1] = negative_one_cpu.get(); TensorHandlePtr first_negative_one = CreatePerDeviceValues( context.get(), components, first_device_name, status.get()); ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get()); components[0] = first_negative_one.get(); components[1] = negative_one_cpu.get();
C++ - Registered: Tue Apr 23 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
std::array<TensorHandlePtr, 2> components; ExtractPerDeviceValues(context, read.get(), &components, status.get()); ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get()); ExpectScalarEq<float>(components[0].get(), 20.); ExpectScalarEq<float>(components[1].get(), 20.); std::string first_device = TFE_TensorHandleBackingDeviceName(components[0].get(), status.get());
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Tue Jun 15 15:44:44 GMT 2021 - 12.5K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device.cc
" inputs to TPUReplicatedInput, but got ", inputs.size())); TF_SetStatus(status, TF_INVALID_ARGUMENT, message.c_str()); return result; } std::vector<TensorHandlePtr> components; components.reserve(inputs.size()); for (int i = 0; i < inputs.size(); ++i) { if (absl::holds_alternative<ParallelTensor*>(inputs[i])) { std::string message(absl::StrCat(
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Wed Mar 29 22:05:31 GMT 2023 - 18.3K bytes - Viewed (0) -
tensorflow/c/eager/c_api_distributed_test.cc
// second worker, and run a distributed function (VariableAddFunction) whose ops // span the local and remote workers. If the graph optimization pass is executed // on both the main function side and the component function side, an error will // be thrown in the registered graph optimization pass. TEST(CAPI, DistributedFunctionGraphPassOnlyOnce) { // Register graph pass that will raise error if called more than once.
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Thu Feb 15 09:49:45 GMT 2024 - 23.5K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/modular_filesystem_test.cc
// Furthermore, since each test creates and deletes files, we will use the same // fixture to create new directories in `SetUp`. Each directory will reside in // `::testing::TempDir()`, will use a RNG component and the test name. This // ensures that two consecutive runs are unlikely to clash. class ModularFileSystemTest : public ::testing::TestWithParam<std::string> { public:
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Fri May 27 20:25:58 GMT 2022 - 71K bytes - Viewed (0)