Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getNumRegions (0.12 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/call_graph_util.cc

                 << "Cannot find function " << sym.getRootReference();
        }
        callees.push_back(callee);
      }
      return success();
    }
    
    bool HasSingleBlock(func::FuncOp func) {
      return func->getNumRegions() == 1 && func.getBody().hasOneBlock();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_arguments.cc

    // This is a lengthy bit of code, since it has to recreate the operation.
    // TODO(kramm): Move this under utils/ somewhere.
    void EraseResults(Operation* op, llvm::BitVector erase) {
      assert(!op->getNumRegions());
      std::vector<Type> result_types;
      for (auto result : op->getResults()) {
        if (!erase[result.getResultNumber()]) {
          result_types.push_back(result.getType());
        }
      }
      OpBuilder builder(op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/constant_fold_utils.cc

      // could be folded should have a custom folder instead of relying on the
      // TensorFlow folding hook.
      if (inst == nullptr || inst->getNumResults() == 0 ||
          inst->hasTrait<OpTrait::TF::NoConstantFold>() ||
          inst->getNumRegions() != 0 || !isMemoryEffectFree(inst)) {
        return false;
      }
    
      // If any of the result types are variants, don't try to constant fold them.
      // This creates opaque variant constants which lose information and would
    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