Lines Matching refs:weights
923 const weights = mindSporeLiteModel.getWeights();
924 for (let i = 0; i < weights.length; i++) {
925 let printStr = weights[i].name + ", ";
926 printStr += weights[i].shape + ", ";
927 printStr += weights[i].dtype + ", ";
928 printStr += weights[i].dataSize + ", ";
929 printStr += weights[i].getData();
930 console.info("MS_LITE weights: ", printStr);
938 updateWeights(weights: MSTensor[]): boolean
948 | weights | [MSTensor](#mstensor)[] | Yes | List of weight tensors.|
966 const weights = mindSporeLiteModel.getWeights();
967 let ret = mindSporeLiteModel.updateWeights(weights);
1057 Exports model weights for micro inference. This API is available only for on-device training.
1068 … | boolean | No | Whether to export weights from the inference model. The value **true** means t…
1069 … | Whether to store floating-point weights in float16 format. The value **true** means to store fl…