- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 3,065 for expectGet (0.13 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/convert_type_test.cc
return os.str(); } TEST(MlirConvertType, ConvertToMlirTensorType) { // Simple case of static shapes. EXPECT_EQ("tensor<4x8x16xi32>", ConvertToMlirString({4, 8, 16}, /*unknown_rank=*/false, DataType::DT_INT32)); // Partially known shapes. EXPECT_EQ("tensor<?x27x?xbf16>", ConvertToMlirString({-1, 27, -1}, /*unknown_rank=*/false,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 2.2K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/saved_variable_loading_test.cc
saved_variable.set_dtype(dtype); shape.AsProto(saved_variable.mutable_shape()); std::unique_ptr<Variable> var; TF_EXPECT_OK(internal::LoadSavedVariable(context(), saved_variable, &var)); EXPECT_EQ(var->dtype(), dtype); EXPECT_EQ(var->shape(), shape); } // Verify that a device specified in the SavedVariable is kept. TEST_P(SavedVariableLoadingTest, LoadSavedVariableWithDevice) { auto& test_params = GetParam();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 27 09:34:33 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/c/while_loop_test.cc
} void ExpectOK() { TF_FinishWhile(params_.get(), s_, &outputs_[0]); EXPECT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); } void ExpectError(TF_Code expected_code, const string& expected_msg) { TF_FinishWhile(params_.get(), s_, &outputs_[0]); EXPECT_EQ(expected_code, TF_GetCode(s_)); EXPECT_EQ(expected_msg, TF_Message(s_)); // TODO(skyewm): this assert is currently broken. Fix or remove guarantee.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 11 06:05:56 UTC 2024 - 15.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/legalize_tf_to_hlo_test.cc
CellReader<int64_t> counts(kBridgeStatusCounter); auto result = CompileMlirModule(kMlirModuleStr); ASSERT_THAT(result, IsOkOrFiltered()); EXPECT_EQ(mlir_bridge_legalize_count.Delta("tf.Acos"), 0); EXPECT_THAT(result, IncrementedOrFiltered(counts.Delta(kMlirCombinedMlirSuccess), 1)); EXPECT_THAT(result,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Apr 14 20:29:34 UTC 2024 - 6K bytes - Viewed (0) -
tensorflow/cc/saved_model/fingerprinting_test.cc
// fingerprints' saved_model_checksums. EXPECT_GT(fingerprint_def.saved_model_checksum(), 0); EXPECT_GT(fingerprint_def2.saved_model_checksum(), 0); EXPECT_EQ(fingerprint_def.graph_def_program_hash(), fingerprint_def2.graph_def_program_hash()); EXPECT_EQ(fingerprint_def.signature_def_hash(), fingerprint_def2.signature_def_hash()); EXPECT_EQ(fingerprint_def.saved_object_graph_hash(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 7.3K bytes - Viewed (0) -
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/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)