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
Hello:
When I was running this code,my loss didn't decrease.
I'm a newcomer to PyTorch.
I will appreciate it very much if you could give me some advise.
coding:utf8
import os
import sys
sys.setrecursionlimit(1000000)
from tqdm import tqdm
from loguru import logger
import torch
from pytorch_transformers import BertConfig, BertForSequenceClassification
from .data import SSTDataset
os.environ["cuda_visible_devices"] = "0"
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
device = torch.device("cpu")
class BertModel(BertForSequenceClassification):
def init(self,dataset=None,epochs=30,batch_size=16,root=True,binary=False,bert="bert-large-uncased",save=False):
Hello:
When I was running this code,my loss didn't decrease.
I'm a newcomer to PyTorch.
I will appreciate it very much if you could give me some advise.
coding:utf8
import os
import sys
sys.setrecursionlimit(1000000)
from tqdm import tqdm
from loguru import logger
import torch
from pytorch_transformers import BertConfig, BertForSequenceClassification
from .data import SSTDataset
os.environ["cuda_visible_devices"] = "0"
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
device = torch.device("cpu")
class BertModel(BertForSequenceClassification):
def init(self,dataset=None,epochs=30,batch_size=16,root=True,binary=False,bert="bert-large-uncased",save=False):
`
The text was updated successfully, but these errors were encountered: