Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 445 for FuncOp (0.22 sec)

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

      func::FuncOp func = getOperation();
      if (failed(RunOnRegion(&func.getBody()))) return signalPassFailure();
    
      func.walk([&](Operation* op) {
        for (Region& region : op->getRegions()) {
          if (failed(RunOnRegion(&region))) return signalPassFailure();
        }
      });
    }
    
    }  // anonymous namespace
    
    std::unique_ptr<OperationPass<func::FuncOp>>
    CreateRewriteTPUEmbeddingOpsPass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 22:55:42 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/manipulate_model_attr.h

    // Adds a new input name to the `inputs` field of the `tf.entry_function`
    // attribute if the attribute exist in the given function. Otherwise, no
    // attribute is modified.
    void AddEntryFunctionInput(StringRef input_name, func::FuncOp func_op);
    
    }  // namespace quant
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 26 01:13:26 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/passes/lowering_passes.td

    limitations under the License.
    ==============================================================================*/
    include "mlir/Pass/PassBase.td"
    
    def InputLoweringMetricsPass : Pass<"input-lowering-metrics-pass", "mlir::func::FuncOp"> {
    
      let summary = "Collects various metrics about the input to the lowering "
                    "portion of the bridge. This is a logical no-op.";
    
      let description = [{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 19:49:04 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/passes/mlir_to_graph_passes.td

    ==============================================================================*/
    include "mlir/Pass/PassBase.td"
    
    def VerifyInputDialectToExecutorPass : Pass<"verify-input-dialect-to-executor-pass", "mlir::func::FuncOp"> {
      let summary = "Verify that TF dialect to executor converter receives the correct input.";
      let description = [{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 08 16:32:56 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc

        return true;
      return false;
    }
    
    class TflToStablehloPass
        : public mlir::PassWrapper<TflToStablehloPass,
                                   mlir::OperationPass<mlir::func::FuncOp>> {
     public:
      explicit TflToStablehloPass() : PassWrapper() {}
      StringRef getArgument() const final { return "tfl-parse-stablehlo-ops"; }
      StringRef getDescription() const final {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 24 06:08:43 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfr/passes/decompose.cc

    void DecomposeTFOpsPass::ApplyCanonicalization() {
      func::FuncOp func = getOperation();
      RewritePatternSet patterns(&getContext());
    
      populateWithGenerated(patterns);
      populateCanonicalizationPatterns(func, patterns);
    
      (void)applyPatternsAndFoldGreedily(func, std::move(patterns));
    }
    
    LogicalResult DecomposeTFOpsPass::RewriteUnregisteredTFOps() {
      func::FuncOp func = getOperation();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables.cc

    #include "tsl/platform/env.h"
    #include "tsl/platform/logging.h"
    #include "tsl/platform/status.h"
    
    namespace tensorflow {
    namespace quantization {
    namespace {
    
    using ::mlir::func::FuncOp;
    using ::mlir::tf_saved_model::GetInitializerFunction;
    using ::mlir::tf_saved_model::kTfSavedModelInitializerRestoreType;
    
    // Adds the tensor that initializes the variable through the provided
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:36:55 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc

          } else if (auto const_op = llvm::dyn_cast<TF::ConstOp>(op)) {
            return !IsIllegalType(const_op.getOutput().getType());
          }
          // The FuncOp type can contain types that the op's operand and result
          // types do not contain.
          if (auto func = dyn_cast<func::FuncOp>(op)) {
            if (!converter_.isSignatureLegal(func.getFunctionType())) return false;
          }
          return converter_.isLegal(op);
        });
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/lower_globals_to_ml_program.cc

        Operation *op = blockArg.getOwner()->getParentOp();
    
        // If we're in the first block, then the argument to that block is the
        // one we're looking for.
        if (auto func = cast<func::FuncOp>(op)) {
          if (blockArg.getOwner()->isEntryBlock()) {
            *out = blockArg;
            return success();
          }
        }
    
        // If we're in an inner block, the we have to find all ops that branch
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tpu_model_to_cpu.cc

        auto module_op = call_op->getParentOfType<ModuleOp>();
        SymbolTable symbol_table(module_op);
    
        auto f_name = f_attr.getValue();
        func::FuncOp float_func =
            dyn_cast<func::FuncOp>(symbol_table.lookup(f_name));
        if (!float_func) {
          return failure();
        }
        rewriter.setInsertionPointAfter(call_op);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top