- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 122 for expectTrue (1.01 sec)
-
src/cmd/compile/internal/test/testdata/fp_test.go
expectCx128(t, "neg", neg, -1-2i) expect64(t, "real", r, 1) expect64(t, "imag", i, 2) expectCx128(t, "cnst", cnst, -4+7i) expectTrue(t, fmt.Sprintf("%v==%v", a, a), c1) expectFalse(t, fmt.Sprintf("%v==%v", a, b), c2) expectFalse(t, fmt.Sprintf("%v!=%v", a, a), c3) expectTrue(t, fmt.Sprintf("%v!=%v", a, b), c4) } func complexTest64(t *testing.T) { var a complex64 = 1 + 2i var b complex64 = 3 + 6i
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 17:54:15 UTC 2022 - 35K bytes - Viewed (0) -
tensorflow/compiler/jit/device_compilation_cache_test.cc
EXPECT_TRUE(cache_value_1->compilation_result != nullptr); EXPECT_TRUE(cache_value_1->executable != nullptr); EXPECT_EQ(cache_value_1->executable->data, "foo_exe"); EXPECT_EQ(cache_value_2->compile_state, DeviceCompileState::kCompiling); EXPECT_TRUE(cache_value_2->compilation_status.ok()); EXPECT_TRUE(cache_value_2->compilation_result != nullptr);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 8.6K bytes - Viewed (0) -
tensorflow/compiler/jit/device_compiler_test.cc
done.WaitForNotification(); cache_value = xla_cache->Lookup(signature); EXPECT_TRUE(cache_value); EXPECT_TRUE(cache_value->compile_state == DeviceCompileState::kCompiled); EXPECT_TRUE(cache_value->compilation_result != nullptr); EXPECT_TRUE(cache_value->executable != nullptr); EXPECT_TRUE(cache_value->compilation_status.ok()); } TEST_F(DeviceCompilerTest, CompilePersistentCacheEnabled) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 19.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/xla_sharding_util_test.cc
TEST(DecodeShardingAttributeTest, CheckInvalidString) { xla::OpSharding sharding; EXPECT_TRUE(DecodeShardingAttribute("", sharding).succeeded()); EXPECT_TRUE(DecodeShardingAttribute("manual", sharding).failed()); } TEST(DecodeShardingAttributeTest, CheckManualShardString) { xla::OpSharding sharding; EXPECT_TRUE(DecodeShardingAttribute("{manual}", sharding).succeeded()); EXPECT_TRUE(sharding.type() == sharding.MANUAL);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 1.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_collector_test.cc
/*min=*/1.0f, /*max=*/10.f, /*histogram=*/{}); collector.Collect( /*min=*/-5.0f, /*max=*/5.f, /*histogram=*/{}); std::optional<CalibrationStatistics> statistics = collector.GetStatistics(); EXPECT_TRUE(statistics.has_value()); EXPECT_EQ(statistics.value().min_max_statistics().global_min(), -5.0f); EXPECT_EQ(statistics.value().min_max_statistics().global_max(), 10.0f); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 16 04:33:52 UTC 2024 - 12.6K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc
cache2.Insert("a", 1); cache2.Insert("b", 2); cache2.Insert("c", 3); cache2.Insert("d", 4); EXPECT_TRUE(cache2.Lookup("a", &value)); EXPECT_EQ(value, 1); EXPECT_TRUE(cache2.Lookup("b", &value)); EXPECT_EQ(value, 2); EXPECT_TRUE(cache2.Lookup("c", &value)); EXPECT_EQ(value, 3); EXPECT_TRUE(cache2.Lookup("d", &value)); EXPECT_EQ(value, 4);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 09 19:31:22 UTC 2020 - 7.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/attrs_and_constraints_test.cc
EXPECT_THAT(op_nullptr, IsNull()); EXPECT_TRUE(failed(TryCast<DotGeneralOp>(op_nullptr, /*name=*/"op_nullptr"))); EXPECT_TRUE(failed(TryCast<DotGeneralOp>(nullptr, /*name=*/"nullptr"))); } TEST_F(AttrsAndConstraintsTest, I64ValueInI32RangeAreCastedCorrectly) { EXPECT_TRUE(succeeded(CastI64ToI32(llvm::minIntN(32)))); EXPECT_TRUE(succeeded(CastI64ToI32(llvm::maxIntN(32)))); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 17:10:32 UTC 2024 - 22.9K bytes - Viewed (0) -
tensorflow/compiler/jit/device_compilation_profiler_test.cc
core::ScopedUnref profiler_ref(profiler); NameAttrList function; function.set_name("TestFunc"); EXPECT_TRUE( profiler->ShouldCompileCluster(function, DeviceCompileMode::kAsync, 0)); EXPECT_TRUE( profiler->ShouldCompileCluster(function, DeviceCompileMode::kLazy, 0)); EXPECT_TRUE( profiler->ShouldCompileCluster(function, DeviceCompileMode::kStrict, 0)); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Dec 22 21:06:33 UTC 2022 - 8.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/utils/tf_type_utils_test.cc
EXPECT_TRUE(failed( GetDenseAttrFromTensorProtoAttr(GetQint16Tensor(), result_tensor_type))); } TEST(IsTFQintTypeTest, ValidTFQintTypeSucceeds) { auto context = CreateContext(); EXPECT_TRUE(IsTFQintType(TF::Qint8Type::get(context.get()))); EXPECT_TRUE(IsTFQintType(TF::Qint16Type::get(context.get()))); EXPECT_TRUE(IsTFQintType(TF::Qint32Type::get(context.get())));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/signature_flattening_test.cc
EXPECT_EQ(flattened.size(), 3); EXPECT_TRUE(TensorSpecsAreEqual(*flattened[0], /* expected_name = */ "x", /* expected_shape = */ {1}, /* expected_dtype = */ DT_FLOAT)) << "Expected " << flattened[0]->DebugString(); EXPECT_TRUE(TensorSpecsAreEqual(*flattened[1],
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Aug 06 21:36:59 UTC 2020 - 5.9K bytes - Viewed (0)