- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 4,110 for expectGet (0.61 sec)
-
tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf_test.cc
"/tensorflow/core/tf2xla/v1/mlir_failed_xla_legalize_tf_pass_count"); auto status = BuildAndRunPipeline(kMlirIllegalOpStr, legalizeTFPasses()); EXPECT_TRUE(status); EXPECT_EQ(legalize_failure_count.Read("tf.DoesntExist", "Unknown"), 1); } TEST(XlaLegalizeTest, LegalOp) { // We expect legalization to fail for legal op with dynamic shapes: static constexpr char kMlirLegalOpStr[] = R"(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:16:07 UTC 2024 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/jit/node_matchers_test.cc
EXPECT_EQ(Explain(add.node(), NodeWith(Inputs())), "\nexpected 0 inputs but node has 2"); EXPECT_EQ( Explain(add.node(), NodeWith(Inputs(Out(NodeWith(Name("blah"))), _))), "\ninput 0 does not match expected:\nname: blah, \nsource does not match " "expected name: blah\n\t\nexpected name blah but found placeholder_a"); EXPECT_EQ(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 14:43:57 UTC 2024 - 9.1K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/constant_loading_test.cc
EXPECT_EQ(revived_tensor->Type(), expected.dtype()); EXPECT_EQ(revived_tensor->NumElements(), expected.NumElements()); EXPECT_EQ(revived_tensor->NumDims(), expected.dims()); for (int i = 0; i < expected.dims(); ++i) { EXPECT_EQ(revived_tensor->Dim(i), expected.dim_size(i)); } testing::CheckBufferDataIsEqual(expected.dtype(), expected.NumElements(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 11 01:20:50 UTC 2021 - 4.2K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/common/case_format_test.cc
string upper_snake; }; void TestSingleVariation(const string &str, Variations expected, char delimiter = '_') { EXPECT_EQ(expected.lower_camel, toLowerCamel(str, delimiter)); EXPECT_EQ(expected.lower_snake, toLowerSnake(str, delimiter)); EXPECT_EQ(expected.upper_camel, toUpperCamel(str, delimiter)); EXPECT_EQ(expected.upper_snake, toUpperSnake(str, delimiter)); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 09:51:28 UTC 2024 - 3.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/conversion_test.go
} if !strings.Contains(err.Error(), tc.ExpectErr) { t.Fatalf("expected error %s, got %v", tc.ExpectErr, err) } return } if len(tc.ExpectErr) > 0 { t.Fatalf("expected error %s, got none", tc.ExpectErr) } if !reflect.DeepEqual(tc.Out, tc.ExpectOut) { t.Fatalf("unexpected result:\n %s", cmp.Diff(tc.ExpectOut, tc.Out)) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 29.2K bytes - Viewed (0) -
pilot/pkg/leaderelection/leaderelection_test.go
expectInt(t, completions.Load, 2) close(stop) } func expectInt(t *testing.T, f func() int32, expected int32) { t.Helper() retry.UntilSuccessOrFail(t, func() error { got := f() if got != expected { return fmt.Errorf("unexpected count: %v, want %v", got, expected) } return nil }, retry.Timeout(time.Second)) } func TestLeaderElectionDisabled(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 28 04:22:19 UTC 2024 - 11.4K bytes - Viewed (0) -
tensorflow/cc/experimental/base/tests/tensorhandle_test.cc
EXPECT_EQ(tensor.dims(), 1); EXPECT_EQ(tensor.dtype(), dtype); absl::Span<const typename TypeParam::type> tensor_view( reinterpret_cast<typename TypeParam::type*>(tensor.data()), value.size()); EXPECT_EQ(tensor_view[0], 42); EXPECT_EQ(tensor_view[1], 100); EXPECT_EQ(tensor_view[2], 0); EXPECT_EQ(tensor_view[3], 1); EXPECT_EQ(tensor_view[4], 4);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 09:56:08 UTC 2024 - 6.9K bytes - Viewed (0) -
tensorflow/compiler/jit/encapsulate_xla_computations_pass_test.cc
InstantiationResultForTest result; TF_EXPECT_OK(InstantiateFunctionForTest(function, flib_def, &result)); EXPECT_EQ((DataTypeVector{DT_INT32, DT_FLOAT, DT_INT32, DT_FLOAT, DT_RESOURCE, DT_RESOURCE, DT_RESOURCE}), result.arg_types); EXPECT_EQ((DataTypeVector{DT_FLOAT, DT_INT32, DT_FLOAT, DT_FLOAT}), result.ret_types);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 16 18:03:15 UTC 2023 - 14.7K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc
.ok()); ASSERT_TRUE(worker_server2->Start().ok()); TFE_ContextSetServerDef(context.get(), 0, serialized.data(), serialized.size(), status.get()); EXPECT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get()); BasicTestsForTwoDevices(context.get(), "/job:worker/replica:0/task:1/device:CPU:0",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 27 22:09:57 UTC 2023 - 6.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v1/compile_tf_graph_test.cc
TF_EXPECT_OK(CompileWithComputation(function_to_hlo_args).status()); Histogram histogram = compilation_time.Delta("graph_old_bridge_has_function_to_hlo"); EXPECT_EQ(histogram.num(), 1); EXPECT_EQ(compilation_status.Delta("kOldBridgeNoMlirSuccess"), 1); } TEST_F(CompileTFGraphTest, SuccessfullyCompilesWithManualSharding) { // MLIR module from failing test.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 08:08:57 UTC 2024 - 11.7K bytes - Viewed (0)