try swin
This commit is contained in:
parent
30805a0af9
commit
6ec566505f
2
main.py
2
main.py
@ -20,6 +20,7 @@ from data_loader import TrainDataset, TestDataset
|
|||||||
from utils import get_logger, get_combined_results, set_gpu, prepare_env, set_seed
|
from utils import get_logger, get_combined_results, set_gpu, prepare_env, set_seed
|
||||||
|
|
||||||
from models import ComplEx, ConvE, HypER, InteractE, FouriER, TuckER
|
from models import ComplEx, ConvE, HypER, InteractE, FouriER, TuckER
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
|
||||||
class Main(object):
|
class Main(object):
|
||||||
@ -721,6 +722,7 @@ if __name__ == "__main__":
|
|||||||
model.fit()
|
model.fit()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
|
traceback.print_exc()
|
||||||
try:
|
try:
|
||||||
del model
|
del model
|
||||||
except Exception:
|
except Exception:
|
||||||
|
Loading…
Reference in New Issue
Block a user