Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 83 for lib_def (0.15 sec)

  1. tensorflow/compiler/mlir/tensorflow/translate/upgrade_graph.h

    Status GenerateResourceSharedNameIfEmpty(
        GraphDef& gdef, const OpRegistryInterface* default_registry);
    
    // Upgrade the `graph` and `flib_def` by applying control flow
    // functionalization.
    Status UpgradeLegacyGraph(Graph* graph, FunctionLibraryDefinition* flib_def,
                              bool restrict_functionalization_to_compiled_nodes);
    
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 19 09:24:48 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.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: Thu Jun 06 23:04:51 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tf_graph_optimization_pass.cc

      // Convert MLIR to Graph
      FunctionLibraryDefinition flib_def(OpRegistry::Global(),
                                         FunctionDefLibrary());
      GraphExportConfig confs;
      auto graph = std::make_unique<Graph>(flib_def);
      absl::flat_hash_set<Node*> control_ret_nodes;
      Status status = tensorflow::tf2xla::v2::ConvertMlirToGraph(
          module_in, confs, &graph, &flib_def, &control_ret_nodes);
      if (!status.ok()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/translate/upgrade_graph.cc

    Status UpgradeLegacyGraph(Graph* graph, FunctionLibraryDefinition* flib_def,
                              bool restrict_functionalization_to_compiled_nodes) {
      NodeFilter node_filter = restrict_functionalization_to_compiled_nodes
                                   ? IsCompiledNode
                                   : NodeFilter{};
      TF_RETURN_WITH_CONTEXT_IF_ERROR(
          FunctionalizeControlFlow(graph, flib_def, node_filter,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 14:33:47 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc

        const ConfigProto& config_proto,
        const FunctionOptimizationPass::FunctionOptions& function_options,
        std::unique_ptr<Graph>* graph, FunctionLibraryDefinition* flib_def,
        std::vector<std::string>* control_ret_node_names,
        bool* control_rets_updated) {
      //  overall_state equals to:
      //    Enabled if at least one pass is Enabled.
      //    Disabled if all passes are Disabled.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/xla_cluster_util_test.cc

    }
    
    absl::StatusOr<std::vector<string>> GetNodesRelatedToRefVarsSorted(
        const Scope& scope, FunctionLibraryDefinition* flib_def = nullptr) {
      FunctionDefLibrary flib;
      FunctionLibraryDefinition flib_def_local(OpRegistry::Global(), flib);
      if (flib_def == nullptr) {
        flib_def = &flib_def_local;
      }
    
      std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global()));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/xla_compiler_options_util_test.cc

          *device_setup_.flr(), device, platform_info,
          /*pjrt_device_compiler=*/nullptr);
    
      EXPECT_EQ(options.device_type, compilation_device_type);
      EXPECT_EQ(options.device_ordinal, 0);
      EXPECT_NE(options.flib_def, nullptr);
      EXPECT_EQ(options.graph_def_version, TF_GRAPH_DEF_VERSION);
      EXPECT_FALSE(options.allow_cpu_custom_calls);
      EXPECT_FALSE(options.alias_passthrough_params);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 29 01:41:20 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/build_xla_ops_pass.cc

    }
    
    absl::StatusOr<jit::DeviceId> InferDeviceForCluster(
        jit::DeviceInfoCache* device_info_cache, Node* n,
        const string& function_name, const FunctionLibraryDefinition& flib_def) {
      const FunctionDef* func_def = flib_def.Find(function_name);
      TF_RET_CHECK(func_def) << "Could not find " << function_name;
    
      jit::DeviceSet device_set;
    
      for (const NodeDef& ndef : func_def->node_def()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/xla_launch_util_gpu_test.cc

        profiler_ = new DeviceCompilationProfiler();
    
        compiler_options_.device_type = jit_device_type;
        compiler_options_.client = nullptr;
        compiler_options_.flib_def = flib_def_.get();
      }
    
      ~PjRtExecutionUtilGpuTest() override {
        for (const auto& tensor : tensors_) {
          delete tensor;
        }
        tensors_.clear();
        device_context_->Unref();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 10K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/dump_graph_test.cc

                       .Finalize(&graph, &node));
    
      string actual;
      StringWritableFile file(&actual);
      TF_ASSERT_OK(DumpTextualIRToFile(MlirDumpConfig().emit_location_information(),
                                       graph, /*flib_def=*/nullptr, &file));
    
      string expected_substr = R"(loc(#loc))";
      ExpectHasSubstr(actual, expected_substr);
    }
    
    TEST(Dump, DumpToTFG) {
      Graph graph(OpRegistry::Global());
      Node* node;
    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