CupyBackend.extract_center#
- CupyBackend.extract_center(arr, newshape)#
Extract the centered portion of an array based on a new shape.
- Parameters:
- arrBackendArray
Input data.
- newshapetuple
Desired shape for the central portion.
- Returns:
- BackendArray
Central portion of the array with shape
newshape
.