Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for entry_func_1 (0.19 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/call_graph_util_test.cc

      ASSERT_TRUE(module);
      auto entry_funcs = GetEntryFunctions(*module);
      EXPECT_EQ(entry_funcs.size(), 2);
      EXPECT_EQ(entry_funcs[0].getSymName(), "entry_func_1");
      EXPECT_EQ(entry_funcs[1].getSymName(), "entry_func_2");
    }
    
    TEST(CallGraphUtilTest, GetCallees) {
      const char *const code = R"mlir(
    func.func @entry_func(%arg0: tensor<i32>) -> tensor<i32> attributes {tf_saved_model.initializer_type = ""} {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 20 04:39:18 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util_test.cc

      EXPECT_TRUE(
          IsSupportedByReplicatedBridge(graph, /*function_library=*/nullptr));
    }
    
    TEST(IsSupportedByReplicatedBridge, ReplicatedModule) {
      const char* const code = R"mlir(
    func.func @entry_func_1(%arg0: tensor<i32>) -> tensor<i32> attributes {tf.entry_function = {}} {
      %0 = "tf.Identity"(%arg0) {_tpu_replicate = "cluster"} : (tensor<i32>) -> (tensor<i32>)
      func.return %0 : tensor<i32>
    }
    )mlir";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 19:51:50 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc

      // Returns `success()` if `entry_func_op`'s body is eligible for rewriting. At
      // this point `entry_func_op`'s signature has not been reset with quantized
      // types.
      virtual LogicalResult match(func::FuncOp entry_func_op,
                                  const Method& quantization_method) const = 0;
    
      // Rewrites the `entry_func_op`'s body.
      virtual void rewrite(func::FuncOp entry_func_op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 06:04:36 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

                             FunctionLibraryDefinition* flib_def,
                             absl::flat_hash_set<Node*>* control_ret_nodes) {
      mlir::StringAttr entry_func_id =
          mlir::StringAttr::get(module.getContext(), "main");
      std::optional<FuncOp> entry_func;
      FunctionLibraryDefinition temp_flib_def(OpRegistry::Global(),
                                              FunctionDefLibrary());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

                             FunctionLibraryDefinition* flib_def,
                             absl::flat_hash_set<Node*>* control_ret_nodes) {
      mlir::StringAttr entry_func_id =
          mlir::StringAttr::get(module.getContext(), "main");
      std::optional<FuncOp> entry_func;
      FunctionLibraryDefinition temp_flib_def(OpRegistry::Global(),
                                              FunctionDefLibrary());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

                                              func::FuncOp entry_func,
                                              std::string* serialized_func_module) {
      ModuleOp module = entry_func->getParentOfType<ModuleOp>();
      SymbolTable entry_module_table(module);
      llvm::SmallVector<func::FuncOp, 4> referenced({entry_func});
    
      // Create a new module to hold func and all referenced functions.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/common/lift_as_function_call_test.cc

          lifted_op->getAttrOfType<FlatSymbolRefAttr>("_entry_function");
      SymbolTable symbol_table(*module_op);
      auto entry_func = dyn_cast_or_null<func::FuncOp>(
          symbol_table.lookup(entry_function_symbol_ref.getValue()));
      auto lifted_dot_general_op =
          FindOperationOfType<mlir::stablehlo::DotGeneralOp>(entry_func);
    
      EXPECT_TRUE(isa<TF::XlaCallModuleOp>(lifted_op));
      EXPECT_EQ(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 26.2K bytes
    - Viewed (0)
Back to top