Skip to content

Commit

Permalink
refactor: clean up imports
Browse files Browse the repository at this point in the history
  • Loading branch information
vejvarm committed Nov 27, 2023
1 parent 4e8280d commit c2df044
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions build_vocabs.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
import time
import random
import logging
from functools import partial

import numpy as np
import torch.optim
from tqdm import tqdm

from model import CARTON
from dataset import CSQADataset, collate_fn
from torch.utils.data import DataLoader, SequentialSampler, BatchSampler, RandomSampler
from torch.utils.tensorboard import SummaryWriter
from utils import (NoamOpt, AverageMeter, SingleTaskLoss, MultiTaskLoss, save_checkpoint, init_weights)

from dataset import CSQADataset
from helpers import setup_logger
from constants import *
from args import get_parser


parser = get_parser()
args = parser.parse_args()

Expand Down

0 comments on commit c2df044

Please sign in to comment.