Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 83 for lib_def (0.12 sec)

  1. tensorflow/compiler/jit/encapsulate_subgraphs_pass_test.cc

      {
        std::unique_ptr<FunctionLibraryDefinition> lib_def(
            new FunctionLibraryDefinition(OpRegistry::Global(), library_expected));
        GraphDefBuilder b2(GraphDefBuilder::kFailImmediately, lib_def.get());
        Node* a = Input(b2.opts().WithName("A"));
        Node* b = Input(b2.opts().WithName("B"));
    
        NodeBuilder node_builder("F1", "F1", lib_def.get());
        node_builder.Input(a).Input(b);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 113.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/compilability_check_util_test.cc

          /*Attributes*/ {},
          // Node info
          {{{kUncompilableFunctionNodeName}, "MissingKernel", {"n_a"}}});
      flib_def_.reset(new FunctionLibraryDefinition(OpRegistry::Global(), flib));
    
      GraphDefBuilder builder(GraphDefBuilder::kFailImmediately, flib_def_.get());
      std::unique_ptr<Graph> graph(new Graph(flib_def_.get()));
      Node* const0 = ops::SourceOp("InputFloatOp", builder.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)
  3. tensorflow/compiler/jit/force_xla_constants_on_host_pass_test.cc

                                   FunctionLibraryDefinition* flib_def,
                                   std::unique_ptr<Graph>* result) {
      auto graph = std::make_unique<Graph>(OpRegistry::Global());
      GraphOptimizationPassOptions options;
      SessionOptions session_options;
      session_options.env = Env::Default();
      options.graph = &graph;
      options.session_options = &session_options;
      options.flib_def = flib_def;
      TF_RETURN_IF_ERROR(s.ToGraph(graph.get()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/device_compiler_test.cc

      XlaOpRegistry::RegisterCompilationKernels();
      auto flib_def = std::make_unique<FunctionLibraryDefinition>(
          OpRegistry::Global(), FunctionDefLibrary());
    
      XlaCompiler::Options options;
      options.device_type = DeviceType(DEVICE_GPU_XLA_JIT);
      options.client = GetLocalClient();
      options.flib_def = flib_def.get();
    
      std::vector<XlaCompiler::Argument> args(1);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/test_util.h

      GraphOptimizationPassOptions CreateGraphOptimizationPassOptions(
          std::unique_ptr<Graph>* graph) {
        GraphOptimizationPassOptions options;
        options.session_options = &session_options;
        options.flib_def = &library;
        options.graph = graph;
        return options;
      }
    
      FunctionLibraryDefinition library;
      SessionOptions session_options;
    };
    
    // Helps set up devices for unit tests.
    class DeviceSetup {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 16 18:03:15 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/resource_operation_safety_analysis_test.cc

      FunctionDefLibrary flib_def;
      FunctionDef func = FunctionDefHelper::Create(
          /*function_name=*/name, /*in_def=*/{}, /*out_def=*/{"out: float"},
          /*attr_def*/
          {}, /*node_def=*/{FunctionDefHelper::Const("one", 1.0f)},
          /*ret_def=*/{{"out", "out:output:0"}});
      *flib_def.add_function() = std::move(func);
      return flib_def;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 28 16:53:59 UTC 2020
    - 18.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/build_xla_ops_pass_test.cc

      }
    
      FixupSourceAndSinkEdges(graph.get());
    
      GraphOptimizationPassWrapper wrapper;
      GraphOptimizationPassOptions opt_options =
          wrapper.CreateGraphOptimizationPassOptions(&graph);
      opt_options.flib_def = &flib_def;
    
      BuildXlaOpsPass pass(/*enable_lazy_compilation=*/true);
      TF_RETURN_IF_ERROR(pass.Run(opt_options));
      VLOG(3) << graph->ToGraphDefDebug().DebugString();
      *result = std::move(graph);
      return absl::OkStatus();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/device_executable_persistor_test.cc

        options.client = xla_compiler_client_->client();
        options.flib_def = flib_def_.get();
        return options;
      }
    
      XlaCompiler::Options DefaultPjRtOptions() {
        XlaCompiler::Options options;
        options.device_type = DeviceType(DEVICE_CPU_XLA_JIT);
        options.client = nullptr;
        options.flib_def = flib_def_.get();
        return options;
      }
    
      Status CreatePjRtCompilerClient() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/mark_for_compilation_pass_test_helper.cc

      TF_RETURN_IF_ERROR(DeviceFactory::AddDevices(session_options, "", &devices));
    
      GraphOptimizationPassOptions opt_options;
      opt_options.graph = graph;
      opt_options.session_options = &session_options;
      opt_options.flib_def = flib_def;
    
      if (options.enable_cluster_scoping) {
        ClusterScopingPass cluster_scoping_pass;
        TF_RETURN_IF_ERROR(cluster_scoping_pass.Run(opt_options));
      }
    
      MarkForCompilationPass mark_for_compilation_pass;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 09 19:51:48 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/dump_graph.cc

                               const FunctionLibraryDefinition* flib_def,
                               WritableFile* file) {
      WritableFileRawStream os(std::move(file));
      mlir::MLIRContext context;
      mlir::OwningOpRef<mlir::ModuleOp> module;
      if (flib_def) {
        flib_def = &graph.flib_def();
      }
      auto convert = [&]() -> Status {
        mlir::StatusScopedDiagnosticHandler status_handler(&context);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:47:51 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top