- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 385 for assertGet (0.35 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/device_util_test.cc
(*module_ref)->setAttr("tf.devices", device_dict); mlir::TF::RuntimeDevices devices; EXPECT_TRUE(mlir::succeeded(GetDevicesFromOp(*module_ref, &devices))); ASSERT_EQ(devices.NumDevices(), 1); ASSERT_EQ(devices.device_names().size(), 1); ASSERT_EQ(DeviceNameUtils::ParsedNameToString(devices.device_names()[0]), "/job:worker/replica:0/task:0/device:CPU:0"); } TEST(DeviceUtilTest, GetGpuDeviceMetadata) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.5K bytes - Viewed (0) -
tensorflow/compiler/jit/resource_operation_safety_analysis_test.cc
root.graph()->AddControlEdge(write, read); std::vector<std::pair<int, int>> incompatible_pairs; TF_ASSERT_OK(ComputeIncompatiblePairs(root.graph(), &incompatible_pairs)); ASSERT_EQ(incompatible_pairs.size(), 1); std::pair<int, int> write_read_pair = {write->id(), read->id()}; EXPECT_EQ(incompatible_pairs[0], write_read_pair); } TEST(ResourceOperationSafetyAnalysisTest, ReadWrite) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 28 16:53:59 UTC 2020 - 18.7K bytes - Viewed (0) -
tensorflow/c/eager/c_api_cluster_test.cc
TFE_Op* op = TFE_NewOp(ctx, "ReadVariableOp", status); ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); TFE_OpSetAttrType(op, "dtype", TF_FLOAT); TFE_OpAddInput(op, var, status); ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); int num_retvals = 1; TFE_Execute(op, out_value, &num_retvals, status); ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); TFE_DeleteOp(op);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 14 10:03:59 UTC 2023 - 19.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/tests/saved_model/saved_model_test.cc
})); ASSERT_EQ(inputs.size(), 1); EXPECT_EQ(inputs[0], "x"); ASSERT_EQ(outputs.size(), 1); EXPECT_EQ(outputs[0], "r"); ASSERT_EQ(in_specs.size(), 1); ASSERT_EQ(in_specs[0].first, tensorflow::DT_INT32); ASSERT_TRUE(in_specs[0].second.IsIdenticalTo(PartialTensorShape({1, 3}))); ASSERT_EQ(out_specs.size(), 1); ASSERT_EQ(out_specs[0].first, tensorflow::DT_INT32);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Oct 13 01:17:29 UTC 2023 - 9K bytes - Viewed (0) -
tensorflow/c/experimental/grappler/grappler_test.cc
}; TF_ASSERT_OK(InitGraphPlugin(plugin_init)); ASSERT_EQ(PluginGraphOptimizerRegistry::CreateOptimizers( std::set<string>{"Success"}) .size(), 1); ConfigList config = PluginGraphOptimizerRegistry::GetPluginConfigs( true, std::set<string>{"Success"}); ASSERT_EQ(config.toggle_config["remapping"], RewriterConfig::OFF); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 13 22:30:58 UTC 2023 - 11.6K bytes - Viewed (0) -
tensorflow/c/eager/c_api_remote_test.cc
auto* h0_task1 = TFE_TensorHandleCopyToDevice(h0_task0, ctx, remote_device_name, status); ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); auto* h1_task1 = TFE_TensorHandleCopyToDevice(h1_task0, ctx, remote_device_name, status); ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); TFE_Op* matmul = MatMulOp(ctx, h0_task1, h1_task1);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 12 00:14:22 UTC 2020 - 5.4K bytes - Viewed (0) -
tensorflow/cc/experimental/libtf/tests/visit_test.cc
return "else"; } }; TEST(VisitTest, Test1) { TaggedValue a(Int64(1)), b(Float32(1.1f)); TaggedValue c = TaggedValue::None(); ASSERT_EQ(a.visit<const char*>(Visitor()), "int64"); ASSERT_EQ(b.visit<const char*>(Visitor()), "float32"); ASSERT_EQ(c.visit<const char*>(Visitor()), "else"); } } // namespace impl } // namespace libtf
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 15 16:58:38 UTC 2021 - 1.4K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/ServerExpectation.groovy
* See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.test.fixtures.server interface ServerExpectation { void assertMet()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 711 bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc
TFE_NewOp(context.get(), "AssertAndCollective", status.get()), TFE_DeleteOp); ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get()); std::unique_ptr<ParallelTensor> reduced_values = parallel_device.ScalarsFromSequence<float>({1.0, 2.0}, context.get(), status.get()); ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 08 23:47:35 UTC 2021 - 15.3K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/ForbidOne.groovy
*/ package org.gradle.test.fixtures.server import groovy.transform.CompileStatic @CompileStatic abstract class ForbidOne extends OneRequestServerExpectation { void assertMet() { if (run) { throw new AssertionError(notMetMessage as Object) } } abstract String getNotMetMessage()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 938 bytes - Viewed (0)