Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for GraphDefBuilder (0.52 sec)

  1. tensorflow/compiler/jit/compilability_check_util_test.cc

      std::unique_ptr<RecursiveCompilabilityChecker> checker_;
      std::unique_ptr<ProcessFunctionLibraryRuntime> pflr_;
    };
    
    TEST_F(CompilabilityCheckUtilTest, CheckNonFunctionalNodes) {
      GraphDefBuilder builder(GraphDefBuilder::kFailImmediately);
      auto opts = builder.opts();
      Node* const0 = ops::SourceOp("InputFloatOp", opts);
      Node* compilable_op = ops::UnaryOp("CompilableOp", const0, opts);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 10 12:32:39 UTC 2022
    - 22.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/encapsulate_subgraphs_pass_test.cc

          .FinalizeBuilder(&node_builder);
    }
    
    Node* Input(const GraphDefBuilder::Options& opts) {
      return ops::SourceOp("InputTest", opts);
    }
    
    Node* InputShaped(const GraphDefBuilder::Options& opts) {
      return ops::SourceOp("InputTestShaped", opts);
    }
    
    Node* KnownShapeBase(DataType dtype, absl::Span<const int> shape,
                         const GraphDefBuilder::Options& opts) {
      if (opts.HaveError()) return nullptr;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 113.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/cluster_scoping_pass_test.cc

        //       v
        // a -> add0 (ClusterX) -> relu0 (ClusterX) -> stage
        //
        //             b
        //             |
        //             v
        // unstage -> add1 (ClusterY) -> relu1 (ClusterY)
        GraphDefBuilder builder(GraphDefBuilder::kFailImmediately);
        Node* a = ops::SourceOp("Const", builder.opts()
                                             .WithName("a")
                                             .WithAttr("dtype", DT_FLOAT)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 29 16:20:48 UTC 2020
    - 6.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/partially_decluster_pass_test.cc

      return true;
    }
    
    TEST(PartiallyDeclusterPassTest, ClusteredAndUnclustered) {
      std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global()));
      {
        GraphDefBuilder builder(GraphDefBuilder::kFailImmediately);
        Node* input =
            ops::SourceOp("FakeNullary", builder.opts().WithName("Input"));
        Node* clustered_producer =
            ops::BinaryOp("FakeBinary", input, input,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 10 12:32:39 UTC 2022
    - 23K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/mark_for_compilation_pass_test.cc

      }
      return cluster_sets;
    }
    
    TEST(XlaCompilationTest, Chains) {
      std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global()));
      {
        GraphDefBuilder builder(GraphDefBuilder::kFailImmediately);
        Node* a =
            ops::SourceOp("UncompilableNullary", builder.opts().WithName("A"));
        Node* b = ops::UnaryOp("Relu", a, builder.opts().WithName("B"));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 10:11:10 UTC 2024
    - 79.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/force_xla_constants_on_host_pass_test.cc

      ForceXlaConstantsOnHostPass rewriter;
      TF_RETURN_IF_ERROR(rewriter.Run(options));
      *result = std::move(graph);
      return absl::OkStatus();
    }
    
    TEST(ForceXlaConstantsOnHostPassTest, Simple) {
      GraphDefBuilder b(GraphDefBuilder::kFailImmediately);
      Scope root = Scope::NewRootScope().ExitOnError();
      FunctionDefLibrary library;
    
      FunctionDef called_func =
          FunctionDefHelper::Create("TransposeCall",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/encapsulate_subgraphs_pass.cc

      dummy_proto.set_dtype(data_type);
      *dummy_proto.mutable_tensor_shape() = shape;
      // Don't set any value field in the proto, since it is only going to be used
      // for shape inference.
    
      GraphDefBuilder::Options options(graph_out, /*status=*/nullptr);
      NodeBuilder node_builder(options.GetNameForOp("KnownShape"), "Const",
                               options.op_registry());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 51K bytes
    - Viewed (0)
Back to top