- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 150 for RewritePatternSet (0.41 sec)
-
tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf.cc
// `from` to the returned set. This is used to partition patterns by op so they // can be cleanly migrated from the old bridge to the MLIR bridge. RewritePatternSet PatternsIncludeOps(RewritePatternSet &from) { RewritePatternSet to(from.getContext()); // Filter NativePatterns. for (auto &pattern : from.getNativePatterns()) { std::optional<OperationName> pat_op_name = pattern->getRootKind();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 10.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.h
// minimum, names should clearly convey scope). In the mean time, for a real // compiler, use PopulateTFLoweringBeforeHLOPatterns. void PopulateLoweringTFPatterns(MLIRContext *context, RewritePatternSet *patterns); // Populates TensorFlow lowering patterns to lower some of the TensorFlow // operations that can be represented by means of other TensorFlow operations.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 27 15:05:02 UTC 2022 - 2.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/passes.h
// Adds the HLO to TF rewrite patterns to the specified pattern list. void PopulateLegalizeHloToTfPatterns(RewritePatternSet* patterns, MLIRContext* context); // Adds the HLO to TFLite rewrite patterns to the specified pattern list. void PopulateLegalizeHloToTFLitePatterns(RewritePatternSet* patterns, MLIRContext* context); #define GEN_PASS_DECL
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 21:59:06 UTC 2024 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/examples/example_hardware.cc
namespace mlir { namespace TFL { namespace tac { constexpr char ExampleHardware::kId[]; // Define kId. mlir::RewritePatternSet ExampleHardware::GetTransformations( MLIRContext* context) const { mlir::RewritePatternSet patterns(context); patterns.add<LowerPackIntoConcatReshape, UnrollSplit, UnrollSplitV, PadSlice, PadConcat>(context); return patterns; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 06 03:08:33 UTC 2023 - 1.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/hardwares/nnapi_hardware.cc
// Default values. constexpr float kNNAPIDefaultFixedValuedCost = 10000.0; constexpr char NNAPIHardware::kId[]; // Define kId. mlir::RewritePatternSet NNAPIHardware::GetTransformations( MLIRContext* context) const { mlir::RewritePatternSet patterns(context); patterns.add<SquaredDifference, LowerPackIntoConcatReshape, ReduceMeanToAvgPool, InsertRequantForReduceMean>(context);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 06 03:08:33 UTC 2023 - 3.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/odml_converter/folders.h
namespace mlir::odml { // Populates the pattern set with all folding patterns. These patterns // are intended to have precedence over any other patterns added to the set. void PopulateFolderPatterns(RewritePatternSet &patternSet); } // namespace mlir::odml
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 22:33:06 UTC 2024 - 1.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_gpu.cc
}; void DeviceTransformGPUPass::runOnOperation() { auto func = getOperation(); auto* ctx = &getContext(); RewritePatternSet patterns = GetHardwareRewritePatternsGPU(ctx); (void)applyPatternsAndFoldGreedily(func, std::move(patterns)); } } // namespace RewritePatternSet GetHardwareRewritePatternsGPU(MLIRContext* context) { GpuHardware gpu_hardware; return gpu_hardware.GetTransformations(context); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 07 18:43:51 UTC 2022 - 3.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_data_optimization.h
namespace mlir { namespace TF { // Populates patterns to perform optimizations specific to tf.data operations. void PopulateTFDataOptimizationPatterns(MLIRContext *context, RewritePatternSet *patterns); } // namespace TF } // namespace mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 27 15:05:02 UTC 2022 - 1.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/hardwares/gpu_hardware.h
// This is used by TAC to get op supported/ op cost estimates on GPU. class GpuHardware : public TargetHardware { public: static constexpr char kId[] = "GPU"; mlir::RewritePatternSet GetTransformations( MLIRContext* context) const override; mlir::TypeID GetTypeId() const override { return mlir::TypeID::get<GpuHardware>(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 27 15:05:02 UTC 2022 - 1.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/dilated_conv.cc
MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(IdentifyDilatedConvPass) void runOnOperation() override; }; void IdentifyDilatedConvPass::runOnOperation() { RewritePatternSet patterns(&getContext()); auto func = getOperation(); patterns.add<ConvertTFDilatedConvOp<TF::Conv2DOp>, ConvertTFDilatedConvOp<TF::DepthwiseConv2dNativeOp>>( &getContext());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Oct 07 21:08:41 UTC 2022 - 1.8K bytes - Viewed (0)