Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for withDevices (0.1 sec)

  1. tensorflow/compiler/jit/encapsulate_subgraphs_pass_test.cc

      }
      std::sort(edges.begin(), edges.end());
      return edges;
    }
    
    TEST(EncapsulateSubgraphsTest, InputDeduplication) {
      Scope root = Scope::NewRootScope().ExitOnError().WithDevice(
          "/job:localhost/replica:0/task:0/cpu:0");
      auto x = ops::Placeholder(root.WithOpName("x"), DT_FLOAT);
      auto add1 = ops::Add(root.WithOpName("add1"), x, x);
      add1.node()->AddAttr("_cluster", "cluster1");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 113.3K bytes
    - Viewed (0)
Back to top