!844 NPU不支持算子使用CPU Kernel计算

Merge pull request !844 from 汪瑞哲/master
This commit is contained in:
i-robot
2022-06-06 09:03:38 +00:00
committed by Gitee
8 changed files with 878 additions and 11 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) 2020 Huawei Technologies Co., Ltd
# Copyright (c) 2019, Facebook CORPORATION.
# Copyright (c) 2019, Facebook CORPORATION.
# All rights reserved.
#
# Licensed under the BSD 3-Clause License (the "License");
@@ -708,7 +708,7 @@ def signature(f: NativeFunction, *, method: bool = False, pyi: bool = False) ->
_input_kwargs = tuple(map(argument, filter(lambda a: a.name in kwarg_only_set, args)))
_outputs = tuple(map(argument, filter(lambda a: a.name in out_arg_set, args)))
return _input_args, _input_kwargs, _outputs
input_args, input_kwargs, outputs = get_args(f, method)
# Reintroduce the scattered fields of TensorOptions for Python.
# Compared to the cpp counterpart, the python arguments have new property