- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 50 for TEST_F (0.29 sec)
-
tensorflow/compiler/jit/tests/device_compiler_serialize_options_test.cc
#include "tensorflow/compiler/jit/mark_for_compilation_pass.h" #include "tensorflow/compiler/jit/tests/device_compiler_test_helper.h" #include "tensorflow/core/lib/core/status_test_util.h" namespace tensorflow { namespace { TEST_F(DeviceCompilerSerializeTest, PersistentCacheOptionsTest) { GraphDef graph = GetTestGraph({-1, 4}); // Warmup the persistent cache(s) with multiple runs. 4 is a magic number to
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 15 15:13:38 UTC 2023 - 2.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate_registration_test.cc
llvm::cl::desc("Translation to perform")); return requested_translation; } llvm::cl::opt<const mlir::Translation*, false, mlir::TranslationParser>* translation_; }; TEST_F(MlirTranslationTest, TranslatesMlirToGraph) { static constexpr char kMlirSource[] = R"( func.func @main() -> (tensor<1x2xf16>, tensor<2xf16>) { %graph:2 = tf_executor.graph {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 20 23:11:32 UTC 2023 - 3.2K bytes - Viewed (0) -
tensorflow/cc/gradients/README.md
[gradient checker](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/cc/framework/gradient_checker.cc) to verify that the theoretical gradient matches the numeric gradient). For example: ``` TEST_F(ArrayGradTest, IdentityGrad) { TensorShape shape({5, 2}); auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape)); auto y = Identity(scope_, x); RunTest(x, shape, y, shape); } ```
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Nov 29 19:12:55 UTC 2021 - 2K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest_prod.h
// class. For example: // // class MyClass { // private: // void MyMethod(); // FRIEND_TEST(MyClassTest, MyMethod); // }; // // class MyClassTest : public testing::Test { // // ... // }; // // TEST_F(MyClassTest, MyMethod) { // // Can call MyClass::MyMethod() here. // } #define FRIEND_TEST(test_case_name, test_name)\ friend class test_case_name##_##test_name##_Test
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/jit/tests/device_compiler_serialize_test.cc
#include "tensorflow/compiler/jit/mark_for_compilation_pass.h" #include "tensorflow/compiler/jit/tests/device_compiler_test_helper.h" #include "tensorflow/core/lib/core/status_test_util.h" namespace tensorflow { namespace { TEST_F(DeviceCompilerSerializeTest, PersistentCacheTest) { GraphDef graph = GetTestGraph({-1, 4}); // Warmup the persistent cache(s) with multiple runs. 4 is a magic number to
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 15 15:13:38 UTC 2023 - 2.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/mlir_pass_instrumentation_test.cc
test_->SetPassThatChangedIdentity(pass->getName().str()); } } private: TestPassInstrumentation* test_; std::unordered_map<mlir::Pass*, std::string> ops_seen_by_pass_; }; TEST_F(TestPassInstrumentation, CreatedCalledAndSetsPassName) { RegisterPassInstrumentor(kTestInstrumentationName, [&]() { return std::make_unique<TestInstrumentor>(this); }); constexpr char legalization[] = R"(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Sep 19 22:54:26 UTC 2023 - 3.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/logging_hooks_test.cc
} DialectRegistry registry_; MLIRContext context_; OwningOpRef<mlir::ModuleOp> mlir_module_; Env* env_; std::string test_dir_; std::string test_group_name_; }; TEST_F(LoggingHooksTest, DumpsPassData) { std::vector<std::string> files; TF_ASSERT_OK(env_->GetChildren(test_dir_, &files)); EXPECT_THAT(files, ::testing::IsEmpty()); TF_ASSERT_OK(CreateMlirModule("dead_const.mlir"));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Apr 14 20:29:34 UTC 2024 - 3.6K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_compile_util_test.cc
#include "tensorflow/core/framework/fake_input.h" #include "tensorflow/core/kernels/ops_testutil.h" #include "tensorflow/core/tpu/tpu_defs.h" namespace tensorflow { namespace { TEST_F(OpsTestBase, CreateSingleOpGraph) { TF_EXPECT_OK(NodeDefBuilder("identity_op", "Identity") .Input(FakeInput(DT_FLOAT)) .Attr("T", DT_FLOAT) .Finalize(node_def()));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 16 21:48:05 UTC 2023 - 6K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_activity_listener_test.cc
a = ops::Add(root.WithOpName(absl::StrCat("add_", i)), a, a); } GraphDef graph_def; root.graph()->ToGraphDef(&graph_def); return graph_def; } TEST_F(XlaActivityListenerTest, Test) { GraphDef graph_def = CreateGraphDef(); SessionOptions options; options.config.mutable_graph_options() ->mutable_optimizer_options()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 5.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/pre_calibration_test.cc
.getValue() .str(), result_listener); } using PreCalibrationComponentTest = ::mlir::quant::QuantizationTestBase; TEST_F(PreCalibrationComponentTest, HasCustomAggregatorOpAndQuantizableFuncForSimpleDotGeneral) { PreCalibrationComponent component(ctx_.get()); OwningOpRef<ModuleOp> module_op = ParseModuleOpString(R"mlir(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 21:41:08 UTC 2024 - 6K bytes - Viewed (0)