Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 83 for lib_def (0.11 sec)

  1. tensorflow/compiler/mlir/tf2xla/api/v1/compile_tf_graph.cc

            "TPU compile op requires module with a entry function main");
      }
    
      // Export functions to the library.
      auto flib_def = std::make_unique<FunctionLibraryDefinition>(
          OpRegistry::Global(), FunctionDefLibrary());
      TF_RETURN_IF_ERROR(PrepareAndExportToLibrary(*mlir_module, flib_def.get()));
    
      if (VLOG_IS_ON(2)) {
        tensorflow::DumpMlirOpToFile("legalize_with_old_bridge_post_transform",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 14K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_kernel_creator_test.cc

          *(proto.add_function()) = fdef;
        }
        lib_def_ = std::make_unique<FunctionLibraryDefinition>(
            OpRegistry::Global(), proto);
        OptimizerOptions opts;
        device_mgr_ = std::make_unique<StaticDeviceMgr>(std::move(devices));
        pflr_ = std::make_unique<ProcessFunctionLibraryRuntime>(
            device_mgr_.get(), Env::Default(), /*config=*/nullptr,
            TF_GRAPH_DEF_VERSION, lib_def_.get(), opts,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 16 01:39:55 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/encapsulate_xla_computations_pass.cc

                                 **options.graph, options.flib_def);
    
      const char* additional_help =
          IsCpuGpuCompile(options.graph->get())
              ? xla::status_macros::kPossibleAutoJitAlternative
              : "";
    
      TF_RETURN_WITH_CONTEXT_IF_ERROR(Encapsulate(options.graph, options.flib_def),
                                      additional_help);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/mlir_graph_optimization_pass_test.cc

      // instead of the way we do in the Init method.
      FunctionDefLibrary flib;
      *flib.add_function() = XTimesTwo();
      FunctionLibraryDefinition flib_def(OpRegistry::Global(), flib);
      graph_ = std::make_unique<Graph>(flib_def);
    
      GraphDef original_graph_def;
      graph_->ToGraphDef(&original_graph_def);
      AddModuleModificationPass(MlirOptimizationPassState::FallbackEnabled,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 08:25:30 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.h

    Status ConvertMlirToGraph(mlir::ModuleOp module,
                              const GraphExportConfig& configs,
                              std::unique_ptr<Graph>* graph,
                              FunctionLibraryDefinition* flib_def,
                              absl::flat_hash_set<Node*>* control_ret_nodes);
    
    // Converts an MLIR module to TensorFlow graph and FunctionLibraryDefinition.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/api/v2/legalize_tf.cc

        case 1: {
          auto input = std::get<1>(computation);
          Graph g(input.flib_def);
          VLOG(2) << "LegalizeMlirToHlo with FLIB computation input: "
                  << DumpGraphToFile(
                         absl::StrCat("legalize_mlir_hlo_computation_input_",
                                      input.function->name()),
                         g, std::get<1>(computation).flib_def);
        } break;
        default:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 29 00:40:46 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/mark_for_compilation_pass_test.cc

      *flib.add_function() = compilable;
      *flib.add_function() = uncompilable;
      *flib.add_function() = noinline;
      FunctionLibraryDefinition flib_def(OpRegistry::Global(), flib);
    
      std::unique_ptr<Graph> graph(new Graph(&flib_def));
      {
        GraphDefBuilder builder(GraphDefBuilder::kFailImmediately, &flib_def);
        Node* a =
            ops::SourceOp("UncompilableNullary", builder.opts().WithName("A"));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 10:11:10 UTC 2024
    - 79.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/partially_decluster_pass.cc

                                   const FunctionLibraryDefinition* flib_def,
                                   Env* env) {
      std::vector<bool> compile_time_const_nodes(graph->num_node_ids());
      OptimizerOptions opts;
      auto pflr = std::make_unique<ProcessFunctionLibraryRuntime>(
          nullptr, env, /*config=*/nullptr, TF_GRAPH_DEF_VERSION, flib_def, opts);
      FunctionLibraryRuntime* lib_runtime =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/shape_inference_test.cc

      std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global()));
      TF_CHECK_OK(root.ToGraph(graph.get()));
    
      GraphShapeInfo shape_info;
      TF_ASSERT_OK(InferShapes(graph.get(), /*arg_shapes=*/{},
                               /*fnlib_def=*/nullptr, &shape_info));
    
      std::map<string, std::vector<PartialTensorShape>> expected = {
          {"A", {PartialTensorShape({2, 3})}}, {"B", {PartialTensorShape({3})}},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  10. src/go/doc/comment/testdata_test.go

    			dumpNL(out, indent+1)
    			fmt.Fprintf(out, "Links")
    			dumpTo(out, indent+2, x.Links)
    		}
    		fmt.Fprintf(out, "\n")
    
    	case []*LinkDef:
    		for _, def := range x {
    			dumpNL(out, indent)
    			dumpTo(out, indent, def)
    		}
    
    	case *LinkDef:
    		fmt.Fprintf(out, "LinkDef Used:%v Text:%q URL:%s", x.Used, x.Text, x.URL)
    
    	case []Block:
    		for _, blk := range x {
    			dumpNL(out, indent)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top