MLCompute iOS 14.0 Beta 1 to Beta 2 API Differences

MLCEmbeddingLayer.h
Added MLCEmbeddingLayer.weightsParameter
MLCGraph.h
Added -[MLCGraph sourceTensorsForLayer:]
Added -[MLCGraph resultTensorsForLayer:]
MLCInferenceGraph.h
MLCLSTMDescriptor.h
Added MLCLSTMDescriptor.resultMode
Added +[MLCLSTMDescriptor descriptorWithInputSize:hiddenSize:layerCount:usesBiases:batchFirst:isBidirectional:returnsSequences:dropout:resultMode:]
MLCOptimizer.h
MLCSGDOptimizer.h
Added MLCSGDOptimizer.usesNesterovMomentum
Added +[MLCSGDOptimizer optimizerWithDescriptor:momentumScale:usesNesterovMomentum:]
AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedPlease use -usesNesterovMomentum instead

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedPlease use +optimizerWithDescriptor:momentumScale:usesNesterovMomentum: instead

MLCTensor.h
Declaration
From@property (nonatomic, readonly, retain) NSArray<MLCTensorData *> *optimizerData
To@property (nonatomic, readwrite, copy) NSArray<MLCTensorData *> *optimizerData

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedPlease use -setOptimizerData: instead

MLCTrainingGraph.h
Added +[MLCTrainingGraph graphWithGraphObjects:lossLayer:optimizer:]
AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedPlease use +graphWithGraphObjects:lossLayer:optimizer: instead

MLCTypes.h
Added MLCLSTMResultMode
Added MLCLSTMResultModeOutput
Added MLCLSTMResultModeOutputAndStates
Added MLCLSTMResultModeDebugDescription()