- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 695 for test_1 (0.11 sec)
-
src/cmd/go/internal/gover/gover_test.go
in2 In2 in3 In3 out Out } func test1[In, Out any](t *testing.T, tests []testCase1[In, Out], name string, f func(In) Out) { t.Helper() for _, tt := range tests { if out := f(tt.in); !reflect.DeepEqual(out, tt.out) { t.Errorf("%s(%v) = %v, want %v", name, tt.in, out, tt.out) } } } func test2[In1, In2, Out any](t *testing.T, tests []testCase2[In1, In2, Out], name string, f func(In1, In2) Out) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 06 23:20:32 UTC 2023 - 3.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v2/tf_dialect_to_executor_test.cc
} return absl::OkStatus(); } DialectRegistry registry_; MLIRContext context_; OwningOpRef<mlir::ModuleOp> mlir_module_; }; TEST_F(TensorflowDialectToExecutorTest, ConvertsToExecutor) { CellReader<int64_t> compilation_status(kExportStreamzName); TF_ASSERT_OK(CreateMlirModule("empty_func.mlir"));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 13 23:22:50 UTC 2024 - 4.4K bytes - Viewed (0) -
test/fixedbugs/bug286.go
// // Error: test2 calls g instead of f func test1(x I) { type J interface { I g() } x.(J).f() if callee != "f" { println("test1 called", callee) error_ = true } } func test2(x I) { type J interface { g() I } x.(J).f() if callee != "f" { println("test2 called", callee) error_ = true } } type J interface { g() I } func test3(x I) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 1.5K bytes - Viewed (0) -
tensorflow/cc/gradients/image_grad_test.cc
} } } Scope scope_; }; TEST_F(ImageGradTest, TestNearestNeighbor) { TestResizedShape(RESIZE_NEAREST); TestResize<float, float, float>(RESIZE_NEAREST); TestResize<double, double, double>(RESIZE_NEAREST); } TEST_F(ImageGradTest, TestBilinear) { TestResizedShape(RESIZE_BILINEAR); TestResize<float, float, float>(RESIZE_BILINEAR);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 15 04:08:05 UTC 2019 - 12.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/validator_test.go
Expression: "this.expression == unit.test", Message: "test2", }, }, }, policyDecision: []PolicyDecision{ { Action: ActionDeny, Reason: metav1.StatusReasonForbidden, Message: "test1", }, { Action: ActionDeny, Reason: metav1.StatusReasonForbidden, Message: "test2", }, }, failPolicy: &fail, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 24.7K bytes - Viewed (0) -
tensorflow/cc/experimental/libtf/tests/function_test.cc
auto value = static_cast<T*>(TF_TensorData(result_t)); EXPECT_EQ(*value, expected); TF_DeleteTensor(result_t); } // TODO(srbs): Add tests for captures. // TODO(srbs): Add tests for polymorphism (different shapes and dtypes). TEST_P(FunctionTest, Square) { // Construct a scalar. impl::TaggedValueTensor x = CreateScalarTensor<float, TF_FLOAT>(2.0f); FunctionDef fdef = SquareFunc();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 19 21:44:52 UTC 2023 - 11.1K bytes - Viewed (0) -
test/ken/embed.go
if s.test5() != s.a5 { println("t4", 5) panic("fail") } if s.test6() != s.a6 { println("t4", 6) panic("fail") } if s.test7() != s.a7 { println("t4", 7) panic("fail") } // call interface if i.test1() != s.test1() { println("t5", 1) panic("fail") } if i.test2() != s.test2() { println("t5", 2) panic("fail") } if i.test3() != s.test3() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 03 17:03:15 UTC 2016 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/utils/dialect_detection_utils_test.cc
using mlir::UnknownLoc; using mlir::chlo::ChloDialect; using mlir::TF::TensorFlowDialect; using tensorflow::tf2xla::internal::IsInBridgeAcceptableDialects; class SharedUtilsTest : public ::testing::Test {}; TEST_F(SharedUtilsTest, IsInFunctionalDialectPasses) { MLIRContext context; context.loadDialect<TensorFlowDialect>(); OpBuilder opBuilder(&context); OperationState state(UnknownLoc::get(opBuilder.getContext()),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Nov 08 20:33:37 UTC 2023 - 2.5K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/GradleTaskGetGroupCrossVersionSpec.groovy
assert it.group == "task group ${it.name-'test'}" } } def "provide getGroup on Task using GradleProject shouldn't fail if group is null"() { file("build.gradle") << ''' task test1() task test2() ''' when: def gradleProject = withConnection { ProjectConnection connection -> connection.getModel(GradleProject) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 2.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights_test.cc
} return nullptr; } TEST_F(QuantizeWeightsTest, QuantizationSucceeds) { LoadBasicModel(); flatbuffers::FlatBufferBuilder builder; auto status = QuantizeWeights(&builder, model_, 0); EXPECT_EQ(status, kTfLiteOk); const uint8_t* buffer = builder.GetBufferPointer(); const Model* output_model = GetModel(buffer); ASSERT_TRUE(output_model); } TEST_F(QuantizeWeightsTest, QuantizationFails) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 23:15:24 UTC 2024 - 32.3K bytes - Viewed (0)