!37916 [docs]fix doc of ms_function

Merge pull request !37916 from chenzhuo/code_docs_master
This commit is contained in:
i-robot 2022-07-12 11:44:25 +00:00 committed by Gitee
commit 46136386ae
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 2 deletions

View File

@ -504,8 +504,8 @@ def ms_function(fn=None, input_signature=None, hash_args=None, jit_config=None):
... return fn(a) ... return fn(a)
... return inner_fn(x) ... return inner_fn(x)
... ...
... inputs = Tensor(np.ones([10, 10, 10]).astype(np.float32)) >>> inputs = Tensor(np.ones([10, 10, 10]).astype(np.float32))
... for i in range(10): >>> for i in range(10):
... closure_fn(inputs, func) ... closure_fn(inputs, func)
""" """