#929 fix some bug in multiprocessing 'spawn' mode

Merged
zoulq merged 6 commits from fix_some_bug into master 8 months ago
hanjr commented 8 months ago
Erpim reviewed 8 months ago
@@ -14,3 +14,1 @@
from torch.onnx import operators

return operators.shape_as_tensor(image)[-2:]
# from torch.onnx import operators
Erpim commented 8 months ago
直接删除
hanjr commented 8 months ago
done
Erpim commented 8 months ago
Collaborator
/lgtm
Erpim reviewed 8 months ago
mindtorch/module_hooker.py
@@ -64,2 +67,4 @@
for k in to_load:
if sys.modules.get(k) is not None:
if self.enabled:
self.torch_unique[k] = sys.modules.get(k)
Erpim commented 8 months ago
部分模块只有torch有,mindtorch未实现,torch切换至mindtorch时,先保存起来,等pop回torch的时候再加载回来。
Erpim marked this conversation as resolved
zoulq merged commit 177be3d6c7 into master 8 months ago
hanjr deleted branch fix_some_bug 8 months ago
The pull request has been merged as 177be3d6c7.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.