// // MLCReshapeLayer.h // MLCompute // // Copyright © 2019 Apple. All rights reserved. // #import #import #import #import @class MLCDevice; @class MLCTensor; NS_ASSUME_NONNULL_BEGIN /*! @class MLCReshapeLayer @abstract A reshape layer. */ MLCOMPUTE_CLASS_AVAILABLE_STARTING(macos(11.0), ios(14.0), tvos(14.0)) @interface MLCReshapeLayer : MLCLayer /*! @property shape @abstract The target shape. */ @property (readonly, nonatomic, copy) NSArray *shape MLCOMPUTE_AVAILABLE_STARTING(macos(11.3), ios(14.5), tvos(14.5)) NS_REFINED_FOR_SWIFT; /*! @abstract Creates a reshape layer with the shape you specify. * @param shape An array that contains the sizes of each dimension. * @return A new reshape layer. */ + (instancetype _Nullable)layerWithShape:(NSArray *)shape NS_REFINED_FOR_SWIFT; @end NS_ASSUME_NONNULL_END