ReshapeDescriptor constructor
- required LayoutShape inputShape,
- required LayoutShape outputShape,
Creates a reshape between equally sized layouts.
Implementation
ReshapeDescriptor({
required this.inputShape,
required this.outputShape,
}) {
if (inputShape.elementCount != outputShape.elementCount) {
throw RohdHclException(
'Cannot reshape ${inputShape.elementCount} elements into '
'${outputShape.elementCount} elements.',
);
}
}