Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for replaceMap (0.13 sec)

  1. src/cmd/go/internal/modload/modfile.go

    	replaceMap := make(map[module.Version]module.Version, len(replacements))
    	for _, r := range replacements {
    		if prev, dup := replaceMap[r.Old]; dup && prev != r.New {
    			base.Fatalf("go: conflicting replacements for %v:\n\t%v\n\t%v", r.Old, prev, r.New)
    		}
    		replaceMap[r.Old] = r.New
    	}
    	return replaceMap
    }
    
    // indexModFile rebuilds the index of modFile.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 26 17:53:40 UTC 2023
    - 26.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc

      auto reshape_op =
          InsertReshapeOp(pack_op.getLoc(), concat_op, input_type.getElementType(),
                          pack_out_shape, &rewriter);
    
      // Rewire output & get rid of the pack op.
      rewriter.replaceOp(pack_op, reshape_op.getResult());
      return success();
    }
    
    // ================== squared_difference ========================
    
    LogicalResult SquaredDifference::matchAndRewrite(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tpu_model_to_cpu.cc

          // TODO(b/267700110): Handle multiple input/output cases.
          rewriter.replaceOp(replicated_input_op, replicated_input_op.getInputs());
        } else if (auto replicated_output_op =
                       dyn_cast_or_null<TF::TPUReplicatedOutputOp>(op)) {
          // TODO(b/267700110): Handle multiple input/output cases.
          rewriter.replaceOp(replicated_output_op, replicated_output_op.getInput());
        } else {
          return failure();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/reduce.h

          auto tf_argreduce_op = rewriter.create<ArgReduce>(
              reduce_op.getLoc(), reduce_op->getResult(1).getType(), operand,
              reduction_indices);
    
          rewriter.replaceOp(reduce_op, {tf_reduce_op, tf_argreduce_op});
        } else {
          auto tf_reduce_op = rewriter.create<Reduce>(
              reduce_op.getLoc(), reduce_op->getResult(0).getType(), operand,
              reduction_indices,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/legalize_tensorlist.cc

        auto converted = rewriter.create<TFL::CustomOp>(
            op->getLoc(), op->getResultTypes(), op->getOperands(),
            "TensorListPopBack", TFL::ConstBytesAttr::get(getContext(), ""));
        rewriter.replaceOp(op, converted.getResults());
        return success();
      }
    };
    
    struct ConvertTensorListPushBack
        : public OpRewritePattern<TF::TensorListPushBackOp> {
      using OpRewritePattern::OpRewritePattern;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize_layout.cc

            pad_op.getPaddingValue(), new_padding_low, new_padding_high,
            new_padding_interrier);
    
        Value orig_pad = CreateTranspose(rewriter, new_pad, transpose_perm);
        rewriter.replaceOp(pad_op, orig_pad);
        return success();
      }
    };
    
    // Transform reduce_window(transpose(x)) to transpose(reduce_window(x))
    struct TransposeCommuteWithReduceWindow
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 21:59:06 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/custom_call.cc

              TFL::ConstBytesAttr::get(rewriter.getContext(), stringattr));
        }
      } else {
        tfl_custom.setCustomOptionAttr(
            TFL::ConstBytesAttr::get(rewriter.getContext(), ""));
      }
    
      rewriter.replaceOp(mhlo_custom_call, tfl_custom);
      return success();
    }
    
    std::optional<bool> IsCustomCallLegal(mhlo::CustomCallOp op) {
      if (op.getCallTargetName().starts_with("custom_call.")) {
        auto bc = op.getBackendConfig();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/fuse_convolution_pass.cc

            conv_op.getFeatureGroupCount(), conv_op.getBatchGroupCount(),
            conv_op.getPrecisionConfigAttr());
        // For static case, replace the convolution op now.
        if (!is_dynamic_broadcast) {
          rewriter.replaceOp(mul_op, {new_conv});
        } else {
          // For dynamic case, create new shape_of op and replace uses.
          shape_of_op =
              dyn_cast_or_null<mhlo::DynamicBroadcastInDimOp>(bcast_or_const_op)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 22:21:19 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_func_to_bfloat16.cc

              DenseFPElementsAttr::get(
                  mlir::dyn_cast<ShapedType>(const_op.getValue().getType())
                      .clone(rewriter.getBF16Type()),
                  bfloat16_values));
        }
    
        rewriter.replaceOp(op, rewriter.create(state)->getResults());
    
        return success();
      }
    };
    
    class BitcastConvertOpPattern
        : public OpConversionPattern<mlir::stablehlo::BitcastConvertOp> {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/smuggle_disallowed_ops.cc

      attrs.push_back(call_target);
      auto custom_call = rewriter.create<mlir::stablehlo::CustomCallOp>(
          op->getLoc(), op->getResultTypes(), op->getOperands(), attrs);
      rewriter.replaceOp(op, custom_call.getResults());
      return success();
    }
    
    }  // namespace
    
    template <typename OpTy>
    class SmuggleOpPattern : public OpRewritePattern<OpTy> {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 19 01:14:04 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top