Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for FuncOp (0.12 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

    }
    
    def BatchMatMulToEinsumPass : Pass<"tf-batch-matmul-to-tf-einsum", "mlir::func::FuncOp"> {
      let summary = "Replace TF BatchMatMul op by TF Einsum op.";
      let constructor = "TF::CreateBatchMatMulToEinsumPass()";
    }
    
    def CanonicalizeCompileAndReplicateAttributesPass : Pass<"tf-canonicalize-compile-and-replicate-attributes", "mlir::func::FuncOp"> {
      let summary = "Canonicalize compilation and replication attributes.";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

      void EnqueueCallers(func::FuncOp fn);
    
      // Returns the function at the front of the queue.
      func::FuncOp front() { return queue_.front(); }
    
      // Returns whether work queue is empty.
      bool EmptyQueue() const { return queue_.empty(); }
    
      // Returns function from the front of the work queue.
      func::FuncOp pop_front() {
        func::FuncOp ret = queue_.front();
        queue_.pop();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

      // Mark main function public, others private.
      for (auto function : module.get().getOps<mlir::func::FuncOp>()) {
        auto visibility = function.getName() == graph_func_name
                              ? mlir::func::FuncOp::Visibility::Public
                              : mlir::func::FuncOp::Visibility::Private;
        function.setVisibility(visibility);
      }
      VLOG(2) << "Imported: "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

      named_regions.reserve(std::distance(module_.begin(), module_.end()));
    
      int subgraph_idx = 0;
    
      // Entry functions for signature defs.
      std::vector<FuncOp> entry_functions;
      std::vector<FuncOp> non_entry_functions;
      FuncOp main_fn = module_.lookupSymbol<FuncOp>("main");
      if (main_fn != nullptr) {
        // Treat the main function as a signature def when the given main function
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

    }
    
    LogicalResult WhileOp::verifySymbolUses(SymbolTableCollection &symbol_table) {
      auto cond_fn =
          symbol_table.lookupNearestSymbolFrom<func::FuncOp>(*this, getCondAttr());
      auto body_fn =
          symbol_table.lookupNearestSymbolFrom<func::FuncOp>(*this, getBodyAttr());
      if (!cond_fn) {
        return emitOpError("cond refers to an undefined function : ") << getCond();
      }
      if (!body_fn) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

    LogicalResult BatchFunctionOp::verifySymbolUses(
        SymbolTableCollection& symbolTable) {
      StringAttr func_attr = getFAttr().getRootReference();
      func::FuncOp func =
          symbolTable.lookupNearestSymbolFrom<func::FuncOp>(*this, func_attr);
    
      if (!func) {
        return emitError("'f' attribute refers to an undefined function: ")
               << func_attr.getValue();
      }
    
      return success();
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

            dimension_numbers.getOutputFeatureDimension(),
            dimension_numbers.getOutputSpatialDimensions());
      }
    };
    
    void UniformQuantizedStableHloToTflPass::runOnOperation() {
      func::FuncOp func_op = getOperation();
      MLIRContext& ctx = getContext();
    
      RewritePatternSet patterns(&ctx);
      patterns.add<RewriteHybridQuantizedConvolutionOp,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/optimize.cc

    std::unique_ptr<OperationPass<func::FuncOp>> CreateOptimizePass(
        bool enable_canonicalization, bool disable_fuse_mul_and_fc) {
      return std::make_unique<OptimizePass>(enable_canonicalization,
                                            disable_fuse_mul_and_fc);
    }
    
    std::unique_ptr<OperationPass<func::FuncOp>> CreateOptimizePass() {
      return std::make_unique<OptimizePass>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

        if (called_computations.size() != 1) {
          return op.emitOpError()
                 << "ApproxTopK takes exactly 1 called_computation.";
        }
        mlir::func::FuncOp callee = module_op_->lookupSymbol<mlir::func::FuncOp>(
            mlir::cast<FlatSymbolRefAttr>(op.getCalledComputations()[0]));
        mlir::FunctionType callee_type = callee.getFunctionType();
        SmallVector<Type, 4> expected_callee_input_types;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

        /// and result type.
        static bool isBuildableWith(Attribute value, Type type);
      }];
    }
    
    def TFL_ControlNodeOp : Op<TFL_Dialect, "control_node",
        [HasParent<"mlir::func::FuncOp">, RecursiveMemoryEffects, SingleBlockImplicitTerminator<"YieldOp">]> {
      let summary = [{
        The `TFL.control_node` operation wraps single-block operations in order to attach control edges.
      }];
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
Back to top