mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
parent
b270334e1e
commit
aa85092b51
1 changed files with 6 additions and 0 deletions
|
|
@ -1852,8 +1852,14 @@ namespace OperatorHelper
|
|||
m_axes = kernelInformation.GetAttributes().GetOptionalAttributeVectorInt32(AttrName::Axes);
|
||||
}
|
||||
std::vector<DimensionType> inputDimensions = shapeInformation.GetInputTensorShape(0);
|
||||
|
||||
HandleNegativeAxes(/*inout*/ m_axes, gsl::narrow_cast<uint32_t>(inputDimensions.size()));
|
||||
std::sort(m_axes.begin(), m_axes.end());
|
||||
if (m_axes.empty())
|
||||
{
|
||||
m_axes.resize(inputDimensions.size());
|
||||
std::iota(m_axes.begin(), m_axes.end(), 0u);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<EdgeShapes> SqueezeHelper::GetOutputShapes(const MLShapeInferenceContext& shapeInfo) const
|
||||
|
|
|
|||
Loading…
Reference in a new issue