- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for GetPadOpType (0.16 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_avg_pool_patterns.td
include "mlir/IR/PatternBase.td" include "tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_utils.td" include "mhlo/IR/hlo_ops.td" // See the function doc in the header file. def GetPadOpType : NativeCodeCall< "GetPadOpType((*$0.begin()).getDefiningOp<mhlo::CompositeOp>())">; // See the function doc in the header file. def GetAvgPoolOpPadAttr:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 23:16:05 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_avg_pool.h
// the padding part is extracted into a tfl.pad op prior to a // tfl.average_pool_2d, this function finds the return type of the needed // tfl.pad . ShapedType GetPadOpType(mhlo::CompositeOp op); // Given a Composite op that wraps a core.aten.avg_pool2d, finds the padding // attribute to be passed to the a tfl.average_pool_2d that can fully replace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 23:16:05 UTC 2024 - 2.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_avg_pool.cc
padding_vec[ind + 2] = val; } auto padding_shape = RankedTensorType::get({4, 2}, builder.getI32Type()); return DenseIntElementsAttr::get(padding_shape, padding_vec); } ShapedType GetPadOpType(CompositeOp op) { const TorchAvgPoolData pool = GetTorchAvgPoolData(op); const auto padding_values = GetPadOpPaddingValues(pool); const int64_t h = pool.h_in + padding_values[0] + padding_values[1];
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 23:16:05 UTC 2024 - 9.2K bytes - Viewed (0)