You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
Hi, thank you very much for the sharing code. But there seems to be something wrong about a circular import.
In model.py,you use from hinet import Hinet,but in hinet.py,you use from model import *,which will cause a circular import bug.Actually,there is no need to use from model import * in hinet.py,import torch.nn as nn is enough.
The text was updated successfully, but these errors were encountered:
loofahsponge
changed the title
Something wrong about a circular import
A circular import bug
Jan 24, 2024
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, thank you very much for the sharing code. But there seems to be something wrong about a circular import.
In
model.py
,you usefrom hinet import Hinet
,but inhinet.py
,you usefrom model import *
,which will cause a circular import bug.Actually,there is no need to usefrom model import *
inhinet.py
,import torch.nn as nn
is enough.The text was updated successfully, but these errors were encountered: