Merged
docs: 修复注释与文档不一致(原型头文件拼写与 axes 说明) #6480
TangPCAdd on 20 days ago
docs: 修复注释与文档不一致(原型头文件拼写与 axes 说明) #6480
Merged
Total: 2 files changed+10-10
| @@ -52,7 +52,7 @@ REG_OP(ExpandDims) | |||
| 52 | * @li offset: To avoid seed collision. \n | 52 | * @li offset: To avoid seed collision. \n |
| 53 | 53 | ||
| 54 | * @par Attributes: | 54 | * @par Attributes: |
| 55 | - * @li dtype: The data type for the elements of the output tensor. if not specifed, | 55 | + * @li dtype: The data type for the elements of the output tensor. if not specified, |
| 56 | * we will use the data type of the input tensor. \n | 56 | * we will use the data type of the input tensor. \n |
| 57 | 57 | ||
| 58 | * @par Outputs: | 58 | * @par Outputs: |
| @@ -409,7 +409,7 @@ REG_OP(ExpandDims) | |||
| 409 | 409 | ||
| 410 | *@par Attributes: | 410 | *@par Attributes: |
| 411 | *type: An optional ge::DataType. It refers to the target data type of outputs . \n | 411 | *type: An optional ge::DataType. It refers to the target data type of outputs . \n |
| 412 | - *keepdim: If True, output dims equal intput dims. otherwise output dims can append. default value is false. \n | 412 | + *keepdim: If True, output dims equal input dims. otherwise output dims can append. default value is false. \n |
| 413 | 413 | ||
| 414 | *@par Third-party framework compatibility | 414 | *@par Third-party framework compatibility |
| 415 | *Compatible with tensorflow QueueIsClosed operator. | 415 | *Compatible with tensorflow QueueIsClosed operator. |
| @@ -27,21 +27,21 @@ namespace ge { | |||
| 27 | * @par Inputs: | 27 | * @par Inputs: |
| 28 | * Five inputs, including: | 28 | * Five inputs, including: |
| 29 | * @li var: A mutable ND Tensor of type BasicType. | 29 | * @li var: A mutable ND Tensor of type BasicType. |
| 30 | -* Support dtype: [float16, float32, bfloat16, int32, int64, double, int8], Supoort format: [ND]. \n | 30 | +* Support dtype: [float16, float32, bfloat16, int32, int64, double, int8], Support format: [ND]. \n |
| 31 | * @li input_value: A mutable ND Tensor of type BasicType . | 31 | * @li input_value: A mutable ND Tensor of type BasicType . |
| 32 | -* Support dtype: [float16, float32, bfloat16, int32, int64, double, int8], Supoort format: [ND]. \n | 32 | +* Support dtype: [float16, float32, bfloat16, int32, int64, double, int8], Support format: [ND]. \n |
| 33 | * @li begin: A mutable ND Tensor of type IndexNumberType. | 33 | * @li begin: A mutable ND Tensor of type IndexNumberType. |
| 34 | -* Support dtype: [int64], Supoort format: [ND]. \n | 34 | +* Support dtype: [int64], Support format: [ND]. \n |
| 35 | * Specifies the index of the first value to select. | 35 | * Specifies the index of the first value to select. |
| 36 | * @li end: A mutable ND Tensor of type IndexNumberType. | 36 | * @li end: A mutable ND Tensor of type IndexNumberType. |
| 37 | -* Support dtype: [int64], Supoort format: [ND]. \n | 37 | +* Support dtype: [int64], Support format: [ND]. \n |
| 38 | * Specifies the index of the last value to select. | 38 | * Specifies the index of the last value to select. |
| 39 | * @li strides: A mutable ND Tensor of type IndexNumberType. | 39 | * @li strides: A mutable ND Tensor of type IndexNumberType. |
| 40 | -* Support dtype: [int64], Supoort format: [ND]. \n | 40 | +* Support dtype: [int64], Support format: [ND]. \n |
| 41 | * Specifies the stride to select. | 41 | * Specifies the stride to select. |
| 42 | * @li axes: Optional. A mutable ND Tensor of type IndexNumberType. | 42 | * @li axes: Optional. A mutable ND Tensor of type IndexNumberType. |
| 43 | -* Support dtype: [int64], Supoort format: [ND]. \n | 43 | +* Support dtype: [int64], Support format: [ND]. \n |
| 44 | -* Specifies the stride to select. \n | 44 | +* Specifies the axes to select. \n |
| 45 | 45 | ||
| 46 | * @par Outputs: | 46 | * @par Outputs: |
| 47 | * var: A mutable Tensor. Has the same type and format as "var" . \n | 47 | * var: A mutable Tensor. Has the same type and format as "var" . \n |
| @@ -65,4 +65,4 @@ REG_OP(StridedSliceAssignV2) | |||
| 65 | .OUTPUT(var, TensorType({DT_FLOAT16, DT_FLOAT, DT_BF16, DT_INT32, DT_INT64, DT_DOUBLE, DT_INT8})) | 65 | .OUTPUT(var, TensorType({DT_FLOAT16, DT_FLOAT, DT_BF16, DT_INT32, DT_INT64, DT_DOUBLE, DT_INT8})) |
| 66 | .OP_END_FACTORY_REG(StridedSliceAssignV2) | 66 | .OP_END_FACTORY_REG(StridedSliceAssignV2) |
| 67 | } // namespace ge | 67 | } // namespace ge |
| 68 | -#endif | 68 | +#endif |