diff --git a/docs/lite/api/source_en/api_java/ascend_device_info.md b/docs/lite/api/source_en/api_java/ascend_device_info.md index e7a40c4e12a1b03bad547d5f98a19644c0df373c..3423232687e93ec5e302fab60ea7f73111fadac1 100644 --- a/docs/lite/api/source_en/api_java/ascend_device_info.md +++ b/docs/lite/api/source_en/api_java/ascend_device_info.md @@ -12,7 +12,7 @@ The AscendDeviceInfo class is used to configure MindSpore Lite Ascend device opt | function | Supported At Cloud-side Inference | Supported At Device-side Inference | | ------------------------------------------ |--------|--------| -| [int getDeviceID)](#getdeviceid) | √ | ✕ | +| [int getDeviceID()](#getdeviceid) | √ | ✕ | | [int getDeviceType](#getdevicetype) | √ | ✕ | | [String getProvider](#getprovider) | √ | ✕ | | [void setProvider(String provider)](#setprovider) | √ | ✕ | @@ -166,11 +166,11 @@ Get the input format of the model. public void setInputFormat(String inputFormat) ``` -Set the input format of the model.Optional "NCHW", "NHWC", and "ND" +Set the input format of the model. Optional "NCHW", "NHWC", and "ND" - Parameters -- `inputFormat`: inputFormat . +- `inputFormat`: inputFormat. ## getInputShape @@ -213,7 +213,7 @@ Get the input shape mapping of the model. public void setInputShapeMap(HashMap> inputShapeMap) ``` -Model input shape. e.g. {{0, {1,2,3,4}}, {1, {4,3,2,1}}}。 +Model input shape. e.g. {{0, {1,2,3,4}}, {1, {4,3,2,1}}}. - Parameters - `inputShapeMap`: inputShapeMap the inputShapeMap to set. @@ -282,7 +282,7 @@ Get the output type of the model. public void setOutputType(int outputType) ``` -Set the type of model outputs. can be DataType.kNumberTypeFloat32, DataType.kNumberTypeUInt8, or DataType.kNumberTypeFloat16. +Set the type of model outputs. Can be DataType.kNumberTypeFloat32, DataType.kNumberTypeUInt8, or DataType.kNumberTypeFloat16. - Parameters - `outputType`: outputType the outputType to set. @@ -328,7 +328,7 @@ Get the operator selection implementation mode of the model. public void setOpSelectImplMode(String opSelectImplMode) ``` -Set the operator selection implementation mode of the model. Optional "high_performance" and "high_precision". "high_performace" is set as default. +Set the operator selection implementation mode of the model. Optional "high_performance" and "high_precision". "high_performance" is set as default. - Parameters - `opSelectImplMode`: opSelectImplMode. @@ -362,7 +362,7 @@ Set fusion switch config file path. public String getBufferOptimizeMode() ``` -Set the buffer optimize mode. Optional "l1_optimize", "l2_optimize", or "off_optimize". "l2_optimize" is set as default. +Get the buffer optimize mode. Optional "l1_optimize", "l2_optimize", or "off_optimize". "l2_optimize" is set as default. - Returns diff --git a/docs/lite/api/source_en/api_java/graph.md b/docs/lite/api/source_en/api_java/graph.md index cfc04787083f59b30b0b61d7b934400b9a51396c..0b2f7f37ff07bad1b0457851a873c3b8f9133100 100644 --- a/docs/lite/api/source_en/api_java/graph.md +++ b/docs/lite/api/source_en/api_java/graph.md @@ -26,7 +26,7 @@ Load the MindSpore model from file. - Parameters - - `File`: Model File. + - `File`: Model file. - Returns diff --git a/docs/lite/api/source_en/api_java/model.md b/docs/lite/api/source_en/api_java/model.md index 740f36f783e6ea8f58052b72fcb0829155e3c256..6908478264f737f761c477b7ea3ecc59390183b1 100644 --- a/docs/lite/api/source_en/api_java/model.md +++ b/docs/lite/api/source_en/api_java/model.md @@ -266,7 +266,7 @@ Load config file. - Returns - Whether the LoadConfig is successful. + Whether the loadConfig is successful. ## updateConfig @@ -296,7 +296,7 @@ Export the model. - Parameters - `fileName`: Model file name. - - `quantization_type`: The quant type. + - `quantizationType`: The quant type. - `isOnlyExportInfer`: Is only export infer. - `outputTensorNames`: The output tensor names for export. @@ -349,7 +349,7 @@ Update model Features. - Returns - Whether the model features is successfully update. + Whether the model features are successfully updated. ## settrainMode @@ -373,7 +373,7 @@ Get train mode. - Returns - Whether the model work in train mode. + Whether the model works in train mode. ## setLearningRate @@ -401,9 +401,9 @@ Set the virtual batch. - Parameters - - `virtualBatchMultiplier`: virtual batch multuplier. + - `virtualBatchMultiplier`: virtual batch multiplier. - `learningRate`: learning rate. - - `momentum`: monentum. + - `momentum`: momentum. - Returns diff --git a/docs/lite/api/source_en/api_java/mscontext.md b/docs/lite/api/source_en/api_java/mscontext.md index 652f0d72fbbd95b24fe31f7b11704b9ea95a818e..8370a865b8566e5768f80f27ebb783df351649bb 100644 --- a/docs/lite/api/source_en/api_java/mscontext.md +++ b/docs/lite/api/source_en/api_java/mscontext.md @@ -39,7 +39,7 @@ MSContext is defined for holding environment variables during runtime. public boolean init() ``` -Use default parameters initialize MSContext, use two thread, no bind, no parallel. +Use default parameters to initialize MSContext, use two threads, no bind, no parallel. - Returns @@ -70,7 +70,7 @@ Initialize MSContext. - `threadNum`: Thread number config for thread pool. - `cpuBindMode`: A **[CpuBindMode](https://gitee.com/mindspore/mindspore-lite/blob/r2.7.1/mindspore-lite/java/src/main/java/com/mindspore/config/CpuBindMode.java)** **enum** variable. - - `isEnableParallel`: Is enable parallel in different device. + - `isEnableParallel`: Whether to enable parallel in different device. - Returns @@ -87,7 +87,7 @@ Add device info for mscontext. - Parameters - `deviceType`: A **[DeviceType](https://gitee.com/mindspore/mindspore-lite/blob/r2.7.1/mindspore-lite/java/src/main/java/com/mindspore/config/DeviceType.java)** **enum** type. - - `isEnableFloat16`: Is enable fp16. + - `isEnableFloat16`: Whether to enable fp16. - Returns @@ -188,7 +188,7 @@ If MSContext is not initialized, this function will do nothing and output null p public int getInterOpParallelNum() ``` -et the current operators parallel number setting. +Get the current operators parallel number setting. If MSContext is not initialized, this function will return -1 and output null pointer information in the log. - Returns diff --git a/docs/lite/api/source_en/api_java/mstensor.md b/docs/lite/api/source_en/api_java/mstensor.md index 4f11ea2f4ce7fb2a5d5215c43cd78d0f95d744f4..7b06075e1d79a4f830a336c8b91e0d0d6dc9b4b2 100644 --- a/docs/lite/api/source_en/api_java/mstensor.md +++ b/docs/lite/api/source_en/api_java/mstensor.md @@ -62,7 +62,7 @@ Create MindSpore MSTensor. - Parameters - `tensorName`: tensor name. - - `obj`: Array object of java or a scalar, support dtype: float, double, int, long, boolean. + - `obj`: Array object of Java or a scalar. Supported dtype: float, double, int, long, boolean. - Returns @@ -78,7 +78,7 @@ Get the shape of the MindSpore MSTensor. - Returns - A array of int as the shape of the MindSpore MSTensor. + An array of int as the shape of the MindSpore MSTensor. ## getDataType @@ -182,7 +182,7 @@ Set the input data of MSTensor. - Returns - whether set data success. + Whether setting the data was successful. ```java public boolean setData(float[] data) @@ -196,7 +196,7 @@ Set the input data of MSTensor. - Returns - whether set data success. + Whether setting the data was successful. ```java public boolean setData(int[] data) @@ -210,7 +210,7 @@ Set the input data of MSTensor. - Returns - whether set data success. + Whether setting the data was successful. ```java public boolean setData(long[] data) @@ -224,7 +224,7 @@ Set the input data of MSTensor. - Returns - whether set data success. + Whether setting the data was successful. ```java public boolean setData(ByteBuffer data) @@ -238,7 +238,7 @@ Set the input data of MSTensor. - Returns - whether set data success. + Whether setting the data was successful. ## size diff --git a/docs/lite/api/source_en/api_java/train_cfg.md b/docs/lite/api/source_en/api_java/train_cfg.md index 7ced816880bad93bae5784399a129502e98c3f37..1c16a767e31bf5b47d3adfba7261bd8692ec2d5e 100644 --- a/docs/lite/api/source_en/api_java/train_cfg.md +++ b/docs/lite/api/source_en/api_java/train_cfg.md @@ -42,7 +42,7 @@ Init train config specified loss name. - Returns - 初始化状态。 + Initialization state. ## free