Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for func_ops (0.16 sec)

  1. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

        for (const auto& [tf_name, mlir_name] : tf_name_to_mlir_name) {
          auto func_op = symbol_table.lookup<mlir::func::FuncOp>(mlir_name);
          TF_RET_CHECK(func_op)
              << "Graphdef importer should have created a function named "
              << mlir_name << ".";
          func_op->setAttr("tf._original_func_name",
                           builder.getStringAttr(tf_name));
        }
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

    def GuaranteeAllFuncsOneUsePass : Pass<"tf-guarantee-all-funcs-one-use", "ModuleOp"> {
      let summary = "Guarantee all FuncOp's have only a single use.";
      let constructor = "TF::CreateGuaranteeAllFuncsOneUsePass()";
    }
    
    def TPUColocateCompositeResourceOpsPass : Pass<"tf-tpu-colocate-composite-resource-ops", "mlir::func::FuncOp"> {
      let summary = "Colocate resource with composite device assignment to TPU device.";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  3. 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)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

      if (failed(applyPatternsAndFoldGreedily(func_op, std::move(patterns)))) {
        func_op.emitError() << "Failed to convert stablehlo ops with uniform "
                               "quantized types to tflite ops.";
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<func::FuncOp>>
    CreateUniformQuantizedStableHloToTflPass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  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.cc

    #include "llvm/Support/FormatVariadic.h"
    #include "llvm/Support/Threading.h"
    #include "llvm/Support/raw_ostream.h"
    #include "mlir/Dialect/Arith/IR/Arith.h"  // from @llvm-project
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/IR/Attributes.h"  // from @llvm-project
    #include "mlir/IR/Builders.h"  // from @llvm-project
    #include "mlir/IR/BuiltinAttributes.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
Back to top