Traceback (most recent call last):
File "D:/1.Study/PycharmProjects/MFAN-main/graph_part/weibo_threemodal.py", line 591, in
train_and_test(model)
File "D:/1.Study/PycharmProjects/MFAN-main/graph_part/weibo_threemodal.py", line 569, in train_and_test
nn.fit(X_train_tid, X_train, y_train,
File "D:/1.Study/PycharmProjects/MFAN-main/graph_part/weibo_threemodal.py", line 335, in fit
self.evaluate(X_dev_tid, X_dev, y_dev)
File "D:/1.Study/PycharmProjects/MFAN-main/graph_part/weibo_threemodal.py", line 338, in evaluate
y_pred = self.predict(X_dev_tid, X_dev)
File "D:/1.Study/PycharmProjects/MFAN-main/graph_part/weibo_threemodal.py", line 363, in predict
logits, grad, dist = self.forward(batch_x_tid, batch_x_text)
After remove grad ,the code run successfully ,want to know my correction is right?
Traceback (most recent call last): File "D:/1.Study/PycharmProjects/MFAN-main/graph_part/weibo_threemodal.py", line 591, in
train_and_test(model)
File "D:/1.Study/PycharmProjects/MFAN-main/graph_part/weibo_threemodal.py", line 569, in train_and_test
nn.fit(X_train_tid, X_train, y_train,
File "D:/1.Study/PycharmProjects/MFAN-main/graph_part/weibo_threemodal.py", line 335, in fit
self.evaluate(X_dev_tid, X_dev, y_dev)
File "D:/1.Study/PycharmProjects/MFAN-main/graph_part/weibo_threemodal.py", line 338, in evaluate
y_pred = self.predict(X_dev_tid, X_dev)
File "D:/1.Study/PycharmProjects/MFAN-main/graph_part/weibo_threemodal.py", line 363, in predict
logits, grad, dist = self.forward(batch_x_tid, batch_x_text)
After remove grad ,the code run successfully ,want to know my correction is right?