// // MLCComparisonLayer.m // MLCompute // // Copyright © 2019 Apple. All rights reserved. // #import #import #import #import @class MLCDevice; @class MLCTensor; NS_ASSUME_NONNULL_BEGIN /*! @abstract Compare layer. * @discussion The layer is used to perform element-wise comparison of two tensor. Returns a * tensor with the shape equal to the largest shape of operands and filled * with Boolean values result[i] = op1[i] ? op2[i], where ? corresponds to the * given \p MLCComparisonOperation. */ MLCOMPUTE_CLASS_AVAILABLE_STARTING(macos(11.3), ios(14.5), tvos(14.5)) @interface MLCComparisonLayer : MLCLayer @property (readonly, nonatomic) MLCComparisonOperation operation; /*! @abstract Create a comparison layer. @return A new compare layer. */ + (instancetype)layerWithOperation:(MLCComparisonOperation)operation; @end NS_ASSUME_NONNULL_END