- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 2,097 for expectGet (0.23 sec)
-
tensorflow/cc/framework/cc_op_gen_test.cc
} )"; void ExpectHasSubstr(StringPiece s, StringPiece expected) { EXPECT_TRUE(absl::StrContains(s, expected)) << "'" << s << "' does not contain '" << expected << "'"; } void ExpectDoesNotHaveSubstr(StringPiece s, StringPiece expected) { EXPECT_FALSE(absl::StrContains(s, expected)) << "'" << s << "' contains '" << expected << "'"; } void ExpectSubstrOrder(const string& s, const string& before,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Sep 29 20:04:30 UTC 2022 - 5.8K bytes - Viewed (0) -
tensorflow/cc/experimental/libtf/tests/variable_test.cc
ctx_.reset(ctx_raw); } }; template <typename T> void ExpectEquals(AbstractTensorHandle* t, T expected) { TF_Tensor* result_t; Status s = tensorflow::GetValue(t, &result_t); ASSERT_TRUE(s.ok()) << s.message(); auto value = static_cast<T*>(TF_TensorData(result_t)); EXPECT_EQ(*value, expected); TF_DeleteTensor(result_t); } TEST_P(VariableTest, CreateAssignReadDestroy) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 19 21:44:52 UTC 2023 - 4.5K bytes - Viewed (0) -
tensorflow/cc/framework/cc_ops_test.cc
TF_EXPECT_OK(AttrValueHasType(*kernel_attr, "string")); EXPECT_EQ(kernel_attr->s(), "AddWithKernelLabel"); } TEST(CCOpTest, ColocateWith) { Scope root = Scope::NewRootScope(); auto c1 = Const(root.WithOpName("c1"), 1); auto c2 = Const(root.WithOpName("c2").ColocateWith(c1), 2); std::vector<string> constraints; GetColocationConstraints(c2, &constraints); EXPECT_EQ(constraints[0], "loc:@c1");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 15 15:13:38 UTC 2023 - 8.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdmethods/stdmethods.go
// Everything must match. if !matchParams(pass, expect.args, args, "") || !matchParams(pass, expect.results, results, "") { expectFmt := id.Name + "(" + argjoin(expect.args) + ")" if len(expect.results) == 1 { expectFmt += " " + argjoin(expect.results) } else if len(expect.results) > 1 { expectFmt += " (" + argjoin(expect.results) + ")" } actual := typeString(sign) actual = strings.TrimPrefix(actual, "func")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 6.9K bytes - Viewed (0) -
tensorflow/c/kernels/summary_op_test.cc
return cpu_allocator(); } }; // Helper for comparing output and expected output void ExpectSummaryMatches(const Summary& actual, const string& expected_str) { Summary expected; ASSERT_TRUE(protobuf::TextFormat::ParseFromString(expected_str, &expected)); EXPECT_EQ(expected.DebugString(), actual.DebugString()); } void TestScalarSummaryOp(Tensor* tags, Tensor* values, string expected_output,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jul 18 15:10:51 UTC 2022 - 6.7K bytes - Viewed (0) -
tensorflow/cc/saved_model/metrics_test.cc
EXPECT_EQ(SavedModelReadApi("bar").value(), 1); SavedModelReadCount("2").IncrementBy(1); EXPECT_EQ(SavedModelReadCount("2").value(), 1); SavedModelReadApi("baz").IncrementBy(1); EXPECT_EQ(SavedModelReadApi("baz").value(), 1); SavedModelReadCount("2").IncrementBy(1); EXPECT_EQ(SavedModelReadCount("2").value(), 2); } TEST(MetricsTest, TestCheckpointRead) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 18 23:43:59 UTC 2024 - 7.6K bytes - Viewed (0) -
tensorflow/compiler/jit/device_compilation_cache_test.cc
TF_ASSERT_OK_AND_ASSIGN(auto key, BuildSampleSignature("foo")); Cache::Value cache_value = cache->LookupOrCreate(key); EXPECT_EQ(cache_value.compile_state, DeviceCompileState::kUncompiled); EXPECT_EQ(cache_value.request_count, 1); EXPECT_EQ(cache_value.compilation_result, nullptr); EXPECT_EQ(cache_value.executable, nullptr); } TEST(DeviceCompilationCacheTest, IncrementRequestCountOnLookup) {
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/xla_compile_util_test.cc
EXPECT_EQ(arg_node->op_def().name(), "_Arg"); EXPECT_EQ(arg_node->attrs().FindByString("T")->type(), DT_FLOAT); const Node* retval_node = node_name_index.at("_retval0"); EXPECT_EQ(retval_node->op_def().name(), "_Retval"); EXPECT_EQ(retval_node->attrs().FindByString("T")->type(), DT_FLOAT); EXPECT_EQ(identity_node->num_outputs(), 1); EXPECT_EQ(retval_node->num_inputs(), 1); const Node* retval_input_node = nullptr;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 16 21:48:05 UTC 2023 - 6K bytes - Viewed (0) -
tensorflow/cc/experimental/libtf/tests/object_test.cc
foo.Set(String("b"), Integer(33)); EXPECT_EQ(foo.Get<Integer>(String("b"))->get(), 33); } TEST(ObjectTest, TestTuple) { Tuple foo(String("a"), Integer(33), Float(10.f)); EXPECT_EQ(foo.size(), 3); EXPECT_EQ(foo.Get<Integer>(1)->get(), 33); } TEST(ObjectTest, TestList) { List l; EXPECT_EQ(l.size(), 0); l.append(Integer(3)); EXPECT_EQ(l.Get<Integer>(0)->get(), 3); EXPECT_EQ(l.size(), 1); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jul 28 21:37:07 UTC 2021 - 5.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/utils/bfloat16_type_test.cc
auto context = CreateContext(); EXPECT_EQ(ToBfloat16Type(Float8E4M3FNType::get(context.get())), Float8E4M3FNType::get(context.get())); EXPECT_EQ(ToBfloat16Type(Float16Type::get(context.get())), Float16Type::get(context.get())); EXPECT_EQ(ToBfloat16Type(BFloat16Type::get(context.get())), BFloat16Type::get(context.get())); EXPECT_EQ(ToBfloat16Type(Float32Type::get(context.get())),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jan 19 23:51:52 UTC 2024 - 5.8K bytes - Viewed (0)