name | about | labels |
---|---|---|
Bug Report | Use this template for reporting a bug | kind/bug |
Ascend
/GPU
/CPU
):Uncomment only one
/device <>
line, hit enter to put that in a new line, and remove leading whitespaces from that line:/device ascend
def test_unsortedsegmentmin_exception_segments_less_of_range():
input_shape = (4, 3)
segment_ids = [2, 0, 1]
num_segments = 3
input = np.random.randn(*input_shape).astype(np.float32)
segments = np.array(segment_ids).astype(np.int32)
net = UnsortedSegmentMin(num_segments)
fact = AnyNetFactory(net=net)
with pytest.raises(ValueError):
out1 = fact(Tensor(input), Tensor(segments))
test_unsortedsegmentmin.py:129:
../share/meta.py:225: in call
return self.net(*args)
../share/utils.py:61: in call
out = super().call(*args, **kwargs )
/root/miniconda3/envs/zb_ge/lib/python3.7/site-packages/mindspore/nn/cell.py:164: in call
out = self.compile_and_run(*inputs)
/root/miniconda3/envs/zb_ge/lib/python3.7/site-packages/mindspore/nn/cell.py:327: in compile_and_run
return _executor(self, *inputs, phase=self.phase)
/root/miniconda3/envs/zb_ge/lib/python3.7/site-packages/mindspore/common/api.py:427: in call
return self.run(obj, *args, phase=phase)
/root/miniconda3/envs/zb_ge/lib/python3.7/site-packages/mindspore/common/api.py:455: in run
return self._exec_pip(obj, *args, phase=phase_real)
/root/miniconda3/envs/zb_ge/lib/python3.7/site-packages/mindspore/common/api.py:67: in wrapper
results = fn(*arg, **kwargs)
self = <mindspore.common.api._Executor object at 0x7fcbb358ce50>, obj = WrapOp<>, phase = '0train.1590060194879452928'
args = ([[ 0.03051996 -0.14384444 1.536539 ]
[ 0.02804725 -0.20637493 0.9453783 ]
[ 0.52259713 -1.1823701 0.44734305]
[-1.3016951 -0.7353799 1.451657 ]], [2 0 1])
fn = <bound method UnsortedSegmentMin.construct of WrapOp<>>, converted = True
@_wrap_func
def _exec_pip(self, obj, *args, phase=''):
"""Execute the generated pipeline."""
fn = obj.construct
converted, arguments_dict, parse_method = _convert_function_arguments(fn, *args)
if not converted:
raise RuntimeError('Process method parameter is failure')
args_list = tuple(arguments_dict.values())
obj.__parse_method__ = parse_method
return self._executor(args_list, phase)
E RuntimeError: mindspore/ccsrc/pipeline/pipeline_ge.cc:513 ExecDFGraph] Exec graph failed
/root/miniconda3/envs/zb_ge/lib/python3.7/site-packages/mindspore/common/api.py:438: RuntimeError
[ERROR] GE(96141,python):2020-05-21-19:23:16.691.090 [framework/domi/engine_manager/dnnengine_manager.cc:225]96141 GetDNNEngineName: ErrorNo: 1343242282(assign engine failed) GetDNNEngineName:Op type UnsortedSegmentMinD of ops kernel AIcoreEngine is unsupported, reason:Op Default/UnsortedSegmentMin-op0 not supported reason: The op desc is not supported in the operator implementation, consult the operator developer for details. Op store name is tbe-builtin.
The type of this op is not found in op store, check whether the op store has this type of op. Op store name is tbe-plugin.
[ERROR] GE(96141,python):2020-05-21-19:23:16.691.115 [framework/domi/engine_manager/dnnengine_manager.cc:228]96141 GetDNNEngineName: ErrorNo: 1343242282(assign engine failed) Can't find any supported ops kernel and engine of Default/UnsortedSegmentMin-op0, type is UnsortedSegmentMinD
[ERROR] GE(96141,python):2020-05-21-19:23:16.691.135 [framework/domi/graph/partition/engine_place.cc:54]96141 Run: ErrorNo: 1343229963(GE is not yet initialized or is finalized.) Can not find engine of op type UnsortedSegmentMinD
[ERROR] GE(96141,python):2020-05-21-19:23:16.691.152 [framework/domi/graph/partition/graph_partition.cc:558]96141 Initialize: ErrorNo: -1(failed) Engine placer run failed.
[ERROR] GE(96141,python):2020-05-21-19:23:16.691.168 [framework/domi/graph/partition/graph_partition.cc:908]96141 PartitionSubGraph: ErrorNo: 1343242240(Failed to initialize graph.) [GraphPartitioner]: initialize failed
[ERROR] GE(96141,python):2020-05-21-19:23:16.691.183 [framework/domi/graph/partition/graph_partition.cc:872]96141 Partition: ErrorNo: -1(failed) Sub graph partition Failed
[ERROR] GE(96141,python):2020-05-21-19:23:16.691.198 [framework/domi/graph/manager/graph_manager.cc:354]96141 PreRun: ErrorNo: -1(failed) Graph partition Failed
[ERROR] GE(96141,python):2020-05-21-19:23:16.691.213 [framework/domi/graph/manager/graph_manager.cc:457]96141 StartForRunGraph: ErrorNo: -1(failed) PreRun Failed.
[ERROR] GE(96141,python):2020-05-21-19:23:16.691.227 [framework/domi/graph/manager/graph_manager.cc:570]96141 RunGraph: ErrorNo: -1(failed) [RunGraph] StartForRunGraph failed!
[ERROR] GE(96141,python):2020-05-21-19:23:16.691.243 [framework/domi/session/inner_session.cc:132]96141 RunGraph: ErrorNo: -1(failed) [InnerSession:0] run graph failed, graph_id=1.
[ERROR] GE(96141,python):2020-05-21-19:23:16.691.286 [framework/domi/client/ge_api.cc:385]96141 RunGraph: ErrorNo: -1(failed) Session RunGraph failed
[ERROR] ME(96141,python):2020-05-21-19:23:16.691.311 [mindspore/ccsrc/transform/graph_runner.cc:150] RunGraph] Call GE RunGraph Failed, ret is: 4294967295
[ERROR] ME(96141,python):2020-05-21-19:23:16.691.330 [mindspore/ccsrc/pipeline/pipeline_ge.cc:416] DoExecGraph] Exec graph failed
[ERROR] ME(96141,python):2020-05-21-19:23:16.691.354 [mindspore/ccsrc/pipeline/pipeline_ge.cc:513] ExecDFGraph] Exec graph failed
def test_unsortedsegmentmin_exception_segments_less_of_range():
input_shape = (4, 3)
segment_ids = [2, 0, 1]
num_segments = 3
input = np.random.randn(*input_shape).astype(np.float32)
segments = np.array(segment_ids).astype(np.int32)
net = UnsortedSegmentMin(num_segments)
fact = AnyNetFactory(net=net)
with pytest.raises(ValueError):
> out1 = fact(Tensor(input), Tensor(segments))
test_unsortedsegmentmin.py:129:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../share/meta.py:225: in __call__
return self.net(*args)
../share/utils.py:61: in __call__
out = super().__call__(*args, **kwargs )
/root/miniconda3/envs/zb_ge/lib/python3.7/site-packages/mindspore/nn/cell.py:164: in __call__
out = self.compile_and_run(*inputs)
/root/miniconda3/envs/zb_ge/lib/python3.7/site-packages/mindspore/nn/cell.py:327: in compile_and_run
return _executor(self, *inputs, phase=self.phase)
/root/miniconda3/envs/zb_ge/lib/python3.7/site-packages/mindspore/common/api.py:427: in __call__
return self.run(obj, *args, phase=phase)
/root/miniconda3/envs/zb_ge/lib/python3.7/site-packages/mindspore/common/api.py:455: in run
return self._exec_pip(obj, *args, phase=phase_real)
/root/miniconda3/envs/zb_ge/lib/python3.7/site-packages/mindspore/common/api.py:67: in wrapper
results = fn(*arg, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <mindspore.common.api._Executor object at 0x7fcbb358ce50>, obj = WrapOp<>, phase = '0train.1590060194879452928'
args = ([[ 0.03051996 -0.14384444 1.536539 ]
[ 0.02804725 -0.20637493 0.9453783 ]
[ 0.52259713 -1.1823701 0.44734305]
[-1.3016951 -0.7353799 1.451657 ]], [2 0 1])
fn = <bound method UnsortedSegmentMin.construct of WrapOp<>>, converted = True
@_wrap_func
def _exec_pip(self, obj, *args, phase=''):
"""Execute the generated pipeline."""
fn = obj.construct
converted, arguments_dict, parse_method = _convert_function_arguments(fn, *args)
if not converted:
raise RuntimeError('Process method parameter is failure')
args_list = tuple(arguments_dict.values())
obj.__parse_method__ = parse_method
> return self._executor(args_list, phase)
E RuntimeError: mindspore/ccsrc/pipeline/pipeline_ge.cc:513 ExecDFGraph] Exec graph failed
/root/miniconda3/envs/zb_ge/lib/python3.7/site-packages/mindspore/common/api.py:438: RuntimeError
raise exception
test_unsortedsegmentmin_exception_segments_less_of_range
test_unsortedsegmentmin_exception_segments_great_of_range
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
已加入校验,请重新测试
回归通过
登录 后才可以发表评论