Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetTestGraph (0.13 sec)

  1. tensorflow/compiler/jit/tests/device_compiler_serialize_test.cc

    #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
      // detect non-determinism in TF when running the test.
      listener()->ClearListenerHistory();
      for (int b = 1; b < 4; ++b) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 15 15:13:38 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/tests/device_compiler_serialize_options_test.cc

    #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
      // detect non-determinism in TF when running the test.
      listener()->ClearListenerHistory();
      for (int b = 1; b < 4; ++b) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 15 15:13:38 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/tests/device_compiler_test_helper.h

      }
    
      JitCompilationListener* listener() const { return listener_; }
    
      // Returns a test graph that will split into two XLA clusters (due to a node
      // with _XlaCompile = false).
      GraphDef GetTestGraph(const PartialTensorShape& input_shape);
    
      // Runs the graph using specified batch size both with and without XLA JIT
      // compilation. Returns an error if the results between the two do not match.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 08:24:16 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/tests/device_compiler_test_helper.cc

      for (const auto& attr : attrs)
        node.mutable_attr()->insert({attr.first, attr.second.proto});
      return node;
    }
    
    }  // namespace
    
    GraphDef DeviceCompilerSerializeTest::GetTestGraph(
        const PartialTensorShape& input_shape) {
      FunctionDef make_test_fn = FunctionDefHelper::Define(
          "TestFn", {"a:float", "b:float", "c:float"}, {"m:float"}, {},
          {{{"d"}, "Add", {"a", "b"}, {{"T", DT_FLOAT}}},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 08:24:16 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top