diff --git a/codegen/templates/_op_plugin_docs.py b/codegen/templates/_op_plugin_docs.py index 30583080ac56cf04551712dde5916d8151c64ddf..4efeb508a3cd6b44eea582bdd67215cc96e2fcd8 100644 --- a/codegen/templates/_op_plugin_docs.py +++ b/codegen/templates/_op_plugin_docs.py @@ -3170,7 +3170,7 @@ torch_npu.npu_transpose(self, perm, require_contiguous=True) -> Tensor 参数说明 self (Tensor) - 输入张量。 perm (ListInt) - 对应维度排列。 -require_contiguous(Bool,默认值为True) - 用户是否显式指定npu_contiguous算子适配需要对输入Tensor做转连续。默认为False,低性能模式。用户明确知道输入Tensor为连续Tensor或转置Tensor时,才能设置为True使用高性能模式。 +require_contiguous(Bool,默认值为True) - 用户是否需要对输入Tensor做转连续。设置为False时,表示不对输入Tensor做转连续。用户明确输入Tensor为连续Tensor或转置Tensor时,才能设置为True。 示例 >>> x = torch.randn(2, 3, 5).npu() >>> x.shape diff --git "a/docs/context/\357\274\210beta\357\274\211torch_npu-npu_transpose.md" "b/docs/context/\357\274\210beta\357\274\211torch_npu-npu_transpose.md" index f09463a568a5679597a38b3adfb19a45eef30d0e..72dbc770ae742a0f338b15414cc69ec64cfe371d 100644 --- "a/docs/context/\357\274\210beta\357\274\211torch_npu-npu_transpose.md" +++ "b/docs/context/\357\274\210beta\357\274\211torch_npu-npu_transpose.md" @@ -14,7 +14,7 @@ torch_npu.npu_transpose(self, perm, require_contiguous=True) -> Tensor - self (Tensor) - 输入张量。 - perm (ListInt) - 对应维度排列。 -- require_contiguous(Bool,默认值为True) - 用户是否显式指定npu_contiguous算子适配需要对输入Tensor做转连续。默认为False,低性能模式。用户明确知道输入Tensor为连续Tensor或转置Tensor时,才能设置为True使用高性能模式。 +- require_contiguous(Bool,默认值为True) - 用户是否需要对输入Tensor做转连续。设置为False时,表示不对输入Tensor做转连续。用户明确输入Tensor为连续Tensor或转置Tensor时,才能设置为True。 ## 支持的型号