Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for RenameExistingMainFunction (0.15 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc

    // It will be renamed by attaching a number suffix like `@main_{i}`, until there
    // are no conflicts. This function is a no-op when no function called @main
    // exists.
    LogicalResult RenameExistingMainFunction(ModuleOp module_op) {
      SymbolTable symbol_table(module_op);
    
      auto main_func_op =
          symbol_table.lookup<func::FuncOp>(kImportModelDefaultGraphFuncName);
      if (!main_func_op) {
        return success();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
Back to top