- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 2,531 for expectGet (0.25 sec)
-
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/cc/framework/scope_test.cc
const auto names1 = LinearOp(root); EXPECT_EQ(names1[0], "linear/mul"); EXPECT_EQ(names1[1], "linear/bias_add"); EXPECT_EQ(names1[2], "linear/c1"); EXPECT_EQ(names1[3], "linear/mul_1"); EXPECT_EQ(names1[4], "linear"); EXPECT_EQ(root.GetUniqueNameForOp("linear"), "linear_1"); const auto names2 = LinearOp(root); EXPECT_EQ(names2[0], "linear_2/mul"); EXPECT_EQ(names2[1], "linear_2/bias_add");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 08:17:37 UTC 2019 - 5.5K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc
TF_EXPECT_OK(status.status); EXPECT_EQ(value, 1); EXPECT_EQ(num_compute_calls, 2); cache2.LookupOrCompute("c", &value, compute_func, &status); TF_EXPECT_OK(status.status); EXPECT_EQ(value, 2); EXPECT_EQ(num_compute_calls, 3); cache2.LookupOrCompute("d", &value, compute_func, &status); TF_EXPECT_OK(status.status); EXPECT_EQ(value, 3); EXPECT_EQ(num_compute_calls, 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/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)