| Change Type | Old Version | New Version | d.ts File |
|---|---|---|---|
| API model switching | Class name: Context; API declaration: target?: string[]; Differences: NA | Class name: Context; API declaration: target?: string[]; Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: Context; API declaration: cpu?: CpuDevice; Differences: NA | Class name: Context; API declaration: cpu?: CpuDevice; Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: Context; API declaration: nnrt?: NNRTDevice; Differences: NA | Class name: Context; API declaration: nnrt?: NNRTDevice; Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: CpuDevice; API declaration: threadNum?: number; Differences: NA | Class name: CpuDevice; API declaration: threadNum?: number; Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: CpuDevice; API declaration: threadAffinityMode?: ThreadAffinityMode; Differences: NA | Class name: CpuDevice; API declaration: threadAffinityMode?: ThreadAffinityMode; Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: CpuDevice; API declaration: threadAffinityCoreList?: number[]; Differences: NA | Class name: CpuDevice; API declaration: threadAffinityCoreList?: number[]; Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: CpuDevice; API declaration: precisionMode?: string; Differences: NA | Class name: CpuDevice; API declaration: precisionMode?: string; Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: ThreadAffinityMode; API declaration: NO_AFFINITIES = 0 Differences: NA | Class name: ThreadAffinityMode; API declaration: NO_AFFINITIES = 0 Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: ThreadAffinityMode; API declaration: BIG_CORES_FIRST = 1 Differences: NA | Class name: ThreadAffinityMode; API declaration: BIG_CORES_FIRST = 1 Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: ThreadAffinityMode; API declaration: LITTLE_CORES_FIRST = 2 Differences: NA | Class name: ThreadAffinityMode; API declaration: LITTLE_CORES_FIRST = 2 Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: MSTensor; API declaration: name: string; Differences: NA | Class name: MSTensor; API declaration: name: string; Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: MSTensor; API declaration: shape: number[]; Differences: NA | Class name: MSTensor; API declaration: shape: number[]; Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: MSTensor; API declaration: elementNum: number; Differences: NA | Class name: MSTensor; API declaration: elementNum: number; Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: MSTensor; API declaration: dataSize: number; Differences: NA | Class name: MSTensor; API declaration: dataSize: number; Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: MSTensor; API declaration: dtype: DataType; Differences: NA | Class name: MSTensor; API declaration: dtype: DataType; Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: MSTensor; API declaration: format: Format; Differences: NA | Class name: MSTensor; API declaration: format: Format; Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: DataType; API declaration: TYPE_UNKNOWN = 0 Differences: NA | Class name: DataType; API declaration: TYPE_UNKNOWN = 0 Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: DataType; API declaration: NUMBER_TYPE_INT8 = 32 Differences: NA | Class name: DataType; API declaration: NUMBER_TYPE_INT8 = 32 Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: DataType; API declaration: NUMBER_TYPE_INT16 = 33 Differences: NA | Class name: DataType; API declaration: NUMBER_TYPE_INT16 = 33 Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: DataType; API declaration: NUMBER_TYPE_INT32 = 34 Differences: NA | Class name: DataType; API declaration: NUMBER_TYPE_INT32 = 34 Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: DataType; API declaration: NUMBER_TYPE_INT64 = 35 Differences: NA | Class name: DataType; API declaration: NUMBER_TYPE_INT64 = 35 Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: DataType; API declaration: NUMBER_TYPE_UINT8 = 37 Differences: NA | Class name: DataType; API declaration: NUMBER_TYPE_UINT8 = 37 Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: DataType; API declaration: NUMBER_TYPE_UINT16 = 38 Differences: NA | Class name: DataType; API declaration: NUMBER_TYPE_UINT16 = 38 Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: DataType; API declaration: NUMBER_TYPE_UINT32 = 39 Differences: NA | Class name: DataType; API declaration: NUMBER_TYPE_UINT32 = 39 Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: DataType; API declaration: NUMBER_TYPE_UINT64 = 40 Differences: NA | Class name: DataType; API declaration: NUMBER_TYPE_UINT64 = 40 Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: DataType; API declaration: NUMBER_TYPE_FLOAT16 = 42 Differences: NA | Class name: DataType; API declaration: NUMBER_TYPE_FLOAT16 = 42 Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: DataType; API declaration: NUMBER_TYPE_FLOAT32 = 43 Differences: NA | Class name: DataType; API declaration: NUMBER_TYPE_FLOAT32 = 43 Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: DataType; API declaration: NUMBER_TYPE_FLOAT64 = 44 Differences: NA | Class name: DataType; API declaration: NUMBER_TYPE_FLOAT64 = 44 Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: Format; API declaration: DEFAULT_FORMAT = -1 Differences: NA | Class name: Format; API declaration: DEFAULT_FORMAT = -1 Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: Format; API declaration: NCHW = 0 Differences: NA | Class name: Format; API declaration: NCHW = 0 Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: Format; API declaration: NHWC = 1 Differences: NA | Class name: Format; API declaration: NHWC = 1 Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: Format; API declaration: NHWC4 = 2 Differences: NA | Class name: Format; API declaration: NHWC4 = 2 Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: Format; API declaration: HWKC = 3 Differences: NA | Class name: Format; API declaration: HWKC = 3 Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: Format; API declaration: HWCK = 4 Differences: NA | Class name: Format; API declaration: HWCK = 4 Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| API model switching | Class name: Format; API declaration: KCHW = 5 Differences: NA | Class name: Format; API declaration: KCHW = 5 Differences: stagemodelonly | api/@ohos.ai.mindSporeLite.d.ts |
| syscap change | Class name: Context; API declaration: target?: string[]; Differences: NA | Class name: Context; API declaration: target?: string[]; Differences: SystemCapability.AI.MindSporeLite | api/@ohos.ai.mindSporeLite.d.ts |
| syscap change | Class name: Context; API declaration: cpu?: CpuDevice; Differences: NA | Class name: Context; API declaration: cpu?: CpuDevice; Differences: SystemCapability.AI.MindSporeLite | api/@ohos.ai.mindSporeLite.d.ts |
| syscap change | Class name: Context; API declaration: nnrt?: NNRTDevice; Differences: NA | Class name: Context; API declaration: nnrt?: NNRTDevice; Differences: SystemCapability.AI.MindSporeLite | api/@ohos.ai.mindSporeLite.d.ts |
| syscap change | Class name: CpuDevice; API declaration: threadNum?: number; Differences: NA | Class name: CpuDevice; API declaration: threadNum?: number; Differences: SystemCapability.AI.MindSporeLite | api/@ohos.ai.mindSporeLite.d.ts |
| syscap change | Class name: CpuDevice; API declaration: threadAffinityMode?: ThreadAffinityMode; Differences: NA | Class name: CpuDevice; API declaration: threadAffinityMode?: ThreadAffinityMode; Differences: SystemCapability.AI.MindSporeLite | api/@ohos.ai.mindSporeLite.d.ts |
| syscap change | Class name: CpuDevice; API declaration: threadAffinityCoreList?: number[]; Differences: NA | Class name: CpuDevice; API declaration: threadAffinityCoreList?: number[]; Differences: SystemCapability.AI.MindSporeLite | api/@ohos.ai.mindSporeLite.d.ts |
| syscap change | Class name: CpuDevice; API declaration: precisionMode?: string; Differences: NA | Class name: CpuDevice; API declaration: precisionMode?: string; Differences: SystemCapability.AI.MindSporeLite | api/@ohos.ai.mindSporeLite.d.ts |
| syscap change | Class name: MSTensor; API declaration: name: string; Differences: NA | Class name: MSTensor; API declaration: name: string; Differences: SystemCapability.AI.MindSporeLite | api/@ohos.ai.mindSporeLite.d.ts |
| syscap change | Class name: MSTensor; API declaration: shape: number[]; Differences: NA | Class name: MSTensor; API declaration: shape: number[]; Differences: SystemCapability.AI.MindSporeLite | api/@ohos.ai.mindSporeLite.d.ts |
| syscap change | Class name: MSTensor; API declaration: elementNum: number; Differences: NA | Class name: MSTensor; API declaration: elementNum: number; Differences: SystemCapability.AI.MindSporeLite | api/@ohos.ai.mindSporeLite.d.ts |
| syscap change | Class name: MSTensor; API declaration: dataSize: number; Differences: NA | Class name: MSTensor; API declaration: dataSize: number; Differences: SystemCapability.AI.MindSporeLite | api/@ohos.ai.mindSporeLite.d.ts |
| syscap change | Class name: MSTensor; API declaration: dtype: DataType; Differences: NA | Class name: MSTensor; API declaration: dtype: DataType; Differences: SystemCapability.AI.MindSporeLite | api/@ohos.ai.mindSporeLite.d.ts |
| syscap change | Class name: MSTensor; API declaration: format: Format; Differences: NA | Class name: MSTensor; API declaration: format: Format; Differences: SystemCapability.AI.MindSporeLite | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: mindSporeLite; API declaration: function loadTrainModelFromFile(model: string, trainCfg?: TrainCfg, context?: Context): Promise<Model>; Differences: function loadTrainModelFromFile(model: string, trainCfg?: TrainCfg, context?: Context): Promise<Model>; | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: mindSporeLite; API declaration: function loadTrainModelFromBuffer(model: ArrayBuffer, trainCfg?: TrainCfg, context?: Context): Promise<Model>; Differences: function loadTrainModelFromBuffer(model: ArrayBuffer, trainCfg?: TrainCfg, context?: Context): Promise<Model>; | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: mindSporeLite; API declaration: function loadTrainModelFromFd(model: number, trainCfg?: TrainCfg, context?: Context): Promise<Model>; Differences: function loadTrainModelFromFd(model: number, trainCfg?: TrainCfg, context?: Context): Promise<Model>; | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: Model; API declaration: learningRate?: number; Differences: learningRate?: number; | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: Model; API declaration: trainMode?: boolean; Differences: trainMode?: boolean; | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: Model; API declaration: runStep(inputs: MSTensor[]): boolean; Differences: runStep(inputs: MSTensor[]): boolean; | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: Model; API declaration: getWeights(): MSTensor[]; Differences: getWeights(): MSTensor[]; | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: Model; API declaration: updateWeights(weights: MSTensor[]): boolean; Differences: updateWeights(weights: MSTensor[]): boolean; | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: Model; API declaration: setupVirtualBatch(virtualBatchMultiplier: number, lr: number, momentum: number): boolean; Differences: setupVirtualBatch(virtualBatchMultiplier: number, lr: number, momentum: number): boolean; | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: Model; API declaration: exportModel(modelFile: string, quantizationType?: QuantizationType, exportInferenceOnly?: boolean, outputTensorName?: string[]): boolean; Differences: exportModel(modelFile: string, quantizationType?: QuantizationType, exportInferenceOnly?: boolean, outputTensorName?: string[]): boolean; | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: Model; API declaration: exportWeightsCollaborateWithMicro(weightFile: string, isInference?: boolean, enableFp16?: boolean, changeableWeightsName?: string[]): boolean; Differences: exportWeightsCollaborateWithMicro(weightFile: string, isInference?: boolean, enableFp16?: boolean, changeableWeightsName?: string[]): boolean; | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: mindSporeLite; API declaration: export enum QuantizationType Differences: export enum QuantizationType | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: QuantizationType; API declaration: NO_QUANT = 0 Differences: NO_QUANT = 0 | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: QuantizationType; API declaration: WEIGHT_QUANT = 1 Differences: WEIGHT_QUANT = 1 | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: QuantizationType; API declaration: FULL_QUANT = 2 Differences: FULL_QUANT = 2 | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: mindSporeLite; API declaration: export enum OptimizationLevel Differences: export enum OptimizationLevel | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: OptimizationLevel; API declaration: O0 = 0 Differences: O0 = 0 | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: OptimizationLevel; API declaration: O2 = 2 Differences: O2 = 2 | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: OptimizationLevel; API declaration: O3 = 3 Differences: O3 = 3 | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: OptimizationLevel; API declaration: AUTO = 4 Differences: AUTO = 4 | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: mindSporeLite; API declaration: interface TrainCfg Differences: interface TrainCfg | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: TrainCfg; API declaration: lossName?: string[]; Differences: lossName?: string[]; | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: TrainCfg; API declaration: optimizationLevel?: OptimizationLevel; Differences: optimizationLevel?: OptimizationLevel; | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: mindSporeLite; API declaration: export enum PerformanceMode Differences: export enum PerformanceMode | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: PerformanceMode; API declaration: PERFORMANCE_NONE = 0 Differences: PERFORMANCE_NONE = 0 | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: PerformanceMode; API declaration: PERFORMANCE_LOW = 1 Differences: PERFORMANCE_LOW = 1 | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: PerformanceMode; API declaration: PERFORMANCE_MEDIUM = 2 Differences: PERFORMANCE_MEDIUM = 2 | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: PerformanceMode; API declaration: PERFORMANCE_HIGH = 3 Differences: PERFORMANCE_HIGH = 3 | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: PerformanceMode; API declaration: PERFORMANCE_EXTREME = 4 Differences: PERFORMANCE_EXTREME = 4 | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: mindSporeLite; API declaration: export enum Priority Differences: export enum Priority | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: Priority; API declaration: PRIORITY_NONE = 0 Differences: PRIORITY_NONE = 0 | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: Priority; API declaration: PRIORITY_LOW = 1 Differences: PRIORITY_LOW = 1 | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: Priority; API declaration: PRIORITY_MEDIUM = 2 Differences: PRIORITY_MEDIUM = 2 | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: Priority; API declaration: PRIORITY_HIGH = 3 Differences: PRIORITY_HIGH = 3 | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: mindSporeLite; API declaration: interface Extension Differences: interface Extension | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: Extension; API declaration: name: string; Differences: name: string; | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: Extension; API declaration: value: ArrayBuffer; Differences: value: ArrayBuffer; | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: mindSporeLite; API declaration: export enum NNRTDeviceType Differences: export enum NNRTDeviceType | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: NNRTDeviceType; API declaration: NNRTDEVICE_OTHERS = 0 Differences: NNRTDEVICE_OTHERS = 0 | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: NNRTDeviceType; API declaration: NNRTDEVICE_CPU = 1 Differences: NNRTDEVICE_CPU = 1 | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: NNRTDeviceType; API declaration: NNRTDEVICE_GPU = 2 Differences: NNRTDEVICE_GPU = 2 | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: NNRTDeviceType; API declaration: NNRTDEVICE_ACCELERATOR = 3 Differences: NNRTDEVICE_ACCELERATOR = 3 | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: mindSporeLite; API declaration: interface NNRTDeviceDescription Differences: interface NNRTDeviceDescription | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: NNRTDeviceDescription; API declaration: deviceID(): bigint; Differences: deviceID(): bigint; | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: NNRTDeviceDescription; API declaration: deviceType(): NNRTDeviceType; Differences: deviceType(): NNRTDeviceType; | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: NNRTDeviceDescription; API declaration: deviceName(): string; Differences: deviceName(): string; | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: mindSporeLite; API declaration: function getAllNNRTDeviceDescriptions(): NNRTDeviceDescription[]; Differences: function getAllNNRTDeviceDescriptions(): NNRTDeviceDescription[]; | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: NNRTDevice; API declaration: deviceID?: bigint; Differences: deviceID?: bigint; | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: NNRTDevice; API declaration: performanceMode?: PerformanceMode; Differences: performanceMode?: PerformanceMode; | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: NNRTDevice; API declaration: priority?: Priority; Differences: priority?: Priority; | api/@ohos.ai.mindSporeLite.d.ts |
| New API | NA | Class name: NNRTDevice; API declaration: extensions?: Extension[]; Differences: extensions?: Extension[]; | api/@ohos.ai.mindSporeLite.d.ts |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 js-apidiff-ArkGraphics2D
openharmony 鸿蒙 js-apidiff-ArkGraphics3D
openharmony 鸿蒙 js-apidiff-MediaKit
openharmony 鸿蒙 js-apidiff-InputKit
openharmony 鸿蒙 js-apidiff-BasicServicesKit
openharmony 鸿蒙 js-apidiff-ConnectivityKit
openharmony 鸿蒙 js-apidiff-ArkWeb