Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetEntryFunctions (0.14 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/xla_validate_inputs.cc

        }
      }
      return success();
    }
    
    void XlaValidateInputsPass::runOnOperation() {
      ModuleOp module = getOperation();
      SymbolTable symtab(module);
      llvm::SmallVector<func::FuncOp> entry_funcs = GetEntryFunctions(module);
      if (entry_funcs.empty()) {
        LOG(WARNING) << "missing entry functions";
      }
    
      if (HasNoNestedEntryFunctions(entry_funcs, symtab).failed()) {
        return signalPassFailure();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 19:29:14 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/call_graph_util.cc

      for (const auto &attr : GetEntryFunctionAttributeNames()) {
        if (func->hasAttr(attr)) {
          return true;
        }
      }
      return false;
    }
    
    llvm::SmallVector<func::FuncOp> GetEntryFunctions(ModuleOp module) {
      llvm::SmallVector<func::FuncOp> entry_funcs;
      module.walk([&](func::FuncOp func) {
        // A model may have multiple graphs, with each graph having its own entry.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.6K bytes
    - Viewed (0)
Back to top