Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isDefinedOutsideOfLoop (0.29 sec)

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

        const llvm::DenseSet<ResourceHandle> &read_only_vars) {
      return moveLoopInvariantCode(
          loopLike.getLoopRegions(),
          [&](Value value, Region *) {
            return loopLike.isDefinedOutsideOfLoop(value);
          },
          [&](Operation *op, Region *region) {
            return ShouldMoveOutOfRegion(op, region, read_only_vars);
          },
          [&](Operation *op, Region *) { loopLike.moveOutOfLoop(op); });
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

      results.add<WhileResultOperandsMatchAndImplicitCapture>(context);
    }
    
    SmallVector<Region*> WhileOp::getLoopRegions() { return {&getBody()}; }
    
    bool WhileOp::isDefinedOutsideOfLoop(Value value) {
      // TODO(jpienaar): This is to overly conservative and disables anything other
      // than constant hoisting initially.
      return false;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

      // tf.IfOp to scf.If op first and then legalize it to tfl.if to reduce
      // code redundancy.
    }
    
    def TFL_WhileOp : Op<TFL_Dialect, "while", [
        DeclareOpInterfaceMethods<LoopLikeOpInterface, ["isDefinedOutsideOfLoop"]>,
        SingleBlockImplicitTerminator<"YieldOp">,
        DeclareOpInterfaceMethods<TFL_RuntimeVerification>]> {
      let summary = [{While loop}];
    
      let description = [{
    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