FIX set_shape should use reshape; but in-place reshape is not supported