Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for PadOp (0.07 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize_layout.cc

          ->getResult(0);
    }
    
    // Transform pad(transpose(x)) to transpose(pad(x))
    struct TransposeCommuteWithPad : public OpRewritePattern<stablehlo::PadOp> {
      using OpRewritePattern<stablehlo::PadOp>::OpRewritePattern;
    
      LogicalResult matchAndRewrite(stablehlo::PadOp pad_op,
                                    PatternRewriter& rewriter) const override {
        Value pad_input = pad_op.getOperand();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 21:59:06 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

    // Current supported ops between convolution input and the block arguments are
    // PadOp and CastOp.
    std::optional<BlockArgumentInfo> GetInputBlockArgNum(Value input) {
      auto block_arg_num = GetBlockArgNum(input);
      if (block_arg_num.has_value()) return block_arg_num;
    
      Value next_input = input;
      auto pad_op = dyn_cast_or_null<TF::PadOp>(next_input.getDefiningOp());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec.cc

                    mlir::stablehlo::PadOp, mlir::stablehlo::ReduceWindowOp,
                    mlir::stablehlo::ReshapeOp, mlir::stablehlo::SelectOp,
                    mlir::stablehlo::SliceOp, mlir::stablehlo::TransposeOp>(op)) {
        scale_spec->has_same_scale_requirement = true;
      }
      if (llvm::isa<mlir::stablehlo::DynamicSliceOp, mlir::stablehlo::GatherOp,
                    mlir::stablehlo::PadOp, mlir::stablehlo::SliceOp>(op)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 05:56:10 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops.cc

                               ConstOp::getOperationName(),
                               LessOp::getOperationName(),
                               MulOp::getOperationName(),
                               PadOp::getOperationName(),
                               PackOp::getOperationName(),
                               ReadVariableOp::getOperationName(),
                               SelectV2Op::getOperationName(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/dilated_conv.h

        return rewriter.notifyMatchFailure(
            stb_op, "result for current op has more than 1 use");
      }
    
      // Pad op.
      TF::PadOp pad_op;
      ElementsAttr pad_attr;
      if (llvm::isa<TF::PadOp>(consumer_op)) {
        pad_op = llvm::cast<TF::PadOp>(consumer_op);
        if (!pad_op.getResult().hasOneUse()) {
          return rewriter.notifyMatchFailure(
              pad_op, "result for current op has more than 1 use");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize.cc

    //  %y1 = pad(%x, pad_val, (p1_1,p1_2,p1_3, ...))
    //  %y2 = pad(%y1, pad_val, (p2_1,p2_2,p2_3, ...))
    // To:
    //  %z = pad(%x, pad_val, (p1_1 + p2_1, p1_2 + p2_2, p1_3 + p2_3, ...))
    LogicalResult MergeConsecutivePad(mhlo::PadOp pad_op,
                                      PatternRewriter &rewriter) {
      // Fail for non-static shapes
      if (!pad_op.getOperand().getType().hasStaticShape() ||
          !pad_op.getResult().getType().hasStaticShape() ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/gpu_hardware.cc

    TAC_REGISTER_GPU_OP(MaximumOp, CreateBasicOpNoCost);
    TAC_REGISTER_GPU_OP(MinimumOp, CreateBasicOpNoCost);
    TAC_REGISTER_GPU_OP(MeanOp, CreateBasicOpNoCost);
    TAC_REGISTER_GPU_OP(CustomOp, CreateBasicOpNoCost);
    TAC_REGISTER_GPU_OP(PadOp, CreateBasicOpNoCost);
    TAC_REGISTER_GPU_OP(PowOp, CreateBasicOpNoCost);
    TAC_REGISTER_GPU_OP(PReluOp, CreateBasicOpNoCost);
    TAC_REGISTER_GPU_OP(ReluOp, CreateBasicOpNoCost);
    TAC_REGISTER_GPU_OP(Relu6Op, CreateBasicOpNoCost);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

    class RewriteQuantizedPadOp : public OpRewritePattern<stablehlo::PadOp> {
     public:
      using OpRewritePattern<stablehlo::PadOp>::OpRewritePattern;
    
      LogicalResult match(stablehlo::PadOp op) const override {
        return success(IsOpFullyQuantized(op));
      }
    
      void rewrite(stablehlo::PadOp op, PatternRewriter& rewriter) const override {
        Value input = op.getOperand();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/quantization/tensorflow/fallback_to_flex_ops.cc

              TF::MaximumOp::getOperationName().str(),
              TF::MeanOp::getOperationName().str(),
              TF::MinimumOp::getOperationName().str(),
              TF::MulOp::getOperationName().str(),
              TF::PadOp::getOperationName().str(),
              TF::PadV2Op::getOperationName().str(),
              TF::Relu6Op::getOperationName().str(),
              TF::ReluOp::getOperationName().str(),
              TF::ReshapeOp::getOperationName().str(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/duplicate_shape_determining_constants.cc

          // $max_output_size
          CompileTimeConstantOperand<TF::NonMaxSuppressionV4Op, 2>,
          CompileTimeConstantOperand<TF::OneHotOp, 1>,  // $depth
          CompileTimeConstantOperand<TF::PadOp, 1>,     // $paddings
          CompileTimeConstantOperand<TF::PadV2Op, 1>,   // $paddings
          // $shape
          CompileTimeConstantOperand<TF::ParameterizedTruncatedNormalOp, 0>,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top