- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 41 for assertGet (0.14 sec)
-
tensorflow/c/experimental/gradients/custom_gradient_test.cc
Status s = BuildImmediateExecutionContext(std::get<1>(GetParam()), &ctx_raw); ASSERT_EQ(errors::OK, s.code()) << s.message(); ctx.reset(ctx_raw); } AbstractTensorHandlePtr x; { AbstractTensorHandle* x_raw = nullptr; Status s = TestScalarTensorHandle<float, TF_FLOAT>(ctx.get(), 1.0f, &x_raw); ASSERT_EQ(errors::OK, s.code()) << s.message(); x.reset(x_raw); } // Pseudo-code:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 28 13:53:47 UTC 2024 - 4.8K bytes - Viewed (0) -
testing/performance/src/templates/native-dependents/test_main.cpp
#include "gtest/gtest.h" #include "${generatedId}/header.h" using namespace testing; <% if (hasTests) { out.println """ TEST(GeneratedTests, test_lib) { ASSERT_EQ(0, function_${generatedId}()); }""" } %> int main(int argc, char **argv) { testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 316 bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/ServerWithExpectations.groovy
@Override void resetExpectations() { try { if (failure != null) { throw failure } for (ServerExpectation e in expectations) { e.assertMet() } } finally { failure = null expectations.clear() } } @Override protected void after() { stop() resetExpectations()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/python/testing_test.py
'shapes': [ [3, 3], [3, None], ], 'has_bias': [True, False], }] combinations = testing.parameter_combinations(test_parameters) self.assertLen(combinations, 4) self.assertIn({'shapes': [3, 3], 'has_bias': True}, combinations) self.assertIn({'shapes': [3, 3], 'has_bias': False}, combinations) self.assertIn({'shapes': [3, None], 'has_bias': True}, combinations)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 21 08:51:46 UTC 2024 - 2.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/ifaceassert/ifaceassert.go
URL: "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/ifaceassert", Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, } // assertableTo checks whether interface v can be asserted into t. It returns // nil on success, or the first conflicting method on failure. func assertableTo(free *typeparams.Free, v, t types.Type) *types.Func { if t == nil || v == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 2.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/dump_graph_test.cc
TF_CHECK_OK(NodeBuilder("A", "NoOp").Finalize(&graph, &node)); setenv("TF_DUMP_GRAPH_PREFIX", testing::TmpDir().c_str(), 1); UseMlirForGraphDump(MlirDumpConfig()); string ret = DumpGraphToFile("tir", graph); ASSERT_EQ(ret, io::JoinPath(testing::TmpDir(), "tir.mlir")); string actual; TF_ASSERT_OK(ReadFileToString(Env::Default(), ret, &actual)); } TEST(Dump, TextualIrWithOptions) { Graph graph(OpRegistry::Global());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Feb 26 03:47:51 UTC 2024 - 3.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/calibrator/integration_test/custom_aggregator_op_test.py
self.assertAllEqual(aggregator_output.output, [1.0, 1.0, 3.0, 4.0, 6.0]) self.assertEqual(aggregator_output.min, 1.0) self.assertEqual(aggregator_output.max, 6.0) self.assertLen(aggregator_output.histogram, 512) self.assertEqual(sum(aggregator_output.histogram), 5) self.assertEqual(aggregator_output.histogram[0], 2) self.assertEqual(aggregator_output.histogram[128], 1)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 01:09:50 UTC 2024 - 5.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter_test.cc
expected->subgraph_metadata()->GetAs<SubgraphMetadata>(i); if (expected_subgraph_metadata->op_metadata() == nullptr && result_subgraph_metadata->op_metadata() == nullptr) { return; } ASSERT_EQ(expected_subgraph_metadata->op_metadata()->size(), result_subgraph_metadata->op_metadata()->size()); for (int j = 0; j < expected_subgraph_metadata->op_metadata()->size(); ++j) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 06:11:34 UTC 2024 - 6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api_predicates.go
// license that can be found in the LICENSE file. // This file implements exported type predicates. package types2 // AssertableTo reports whether a value of type V can be asserted to have type T. // // The behavior of AssertableTo is unspecified in three cases: // - if T is Typ[Invalid] // - if V is a generalized interface; i.e., an interface that may only be used
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 16:36:08 UTC 2024 - 3.3K bytes - Viewed (0) -
src/go/types/api_predicates.go
// license that can be found in the LICENSE file. // This file implements exported type predicates. package types // AssertableTo reports whether a value of type V can be asserted to have type T. // // The behavior of AssertableTo is unspecified in three cases: // - if T is Typ[Invalid] // - if V is a generalized interface; i.e., an interface that may only be used
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 16:36:08 UTC 2024 - 3.5K bytes - Viewed (0)