Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsNonConstOp (0.11 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/common/utils.h

    #include "tensorflow/compiler/mlir/lite/utils/utils.h"
    
    namespace mlir {
    namespace TFL {
    namespace tac {
    
    // Returns true if 'op' is non const op. Returns false otherwise or if
    // 'op' is null.
    inline bool IsNonConstOp(Operation* op) {
      if (!op) return false;
      if (llvm::isa<arith::ConstantOp, mlir::func::ConstantOp>(op)) return false;
      if (op->hasTrait<OpTrait::ConstantLike>()) return false;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.cc

      }
      void runOnOperation() override;
    };
    
    void GetOpCostPass::runOnOperation() {
      auto func = getOperation();
      OpBuilder builder(func);
      func.walk([&](Operation* op) {
        if (IsNonConstOp(op) && !IsTerminatorOp(op) &&
            !llvm::isa<func::ReturnOp, func::FuncOp, CallOpInterface>(op)) {
          auto hardware = GetTargetAnnotation(op);
          if (!hardware) return;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top