Not watched
363
0

#12 Profiler 调用报错

Closed
created 3 years ago by wdxwj · 1 comments
wdxwj commented 3 years ago
[ERROR] DEVICE(37775,python):2021-03-16-09:27:26.070.775 [mindspore/ccsrc/runtime/device/ascend/profiling/profiling_manager.cc:102] PluginUnInit] MsprofReporterCallback callback is nullptr. 调用方法为: from mindspore.profiler import Profiler profiler = Profiler() cnt = 0 for i in joint_generator.create_dict_iterator(): print(cnt) cnt += 1 joint_model(i['task_id'],i['src_ids'],i['pos_ids'],i['sent_ids'],i['input_mask'],i['start_positions'],i['end_positions'],i['mask_label'],i['mask_pos'],i['labels']) break profiler.analyse()
wdxwj commented 3 years ago
Poster
已经解决,在设置完context后就马上调用profiler = Profiler()就没问题了。
wdxwj closed this issue 3 years ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.