Skip to content

Commit

Permalink
only import wandb when called upon
Browse files Browse the repository at this point in the history
  • Loading branch information
jxmorris12 committed May 14, 2020
1 parent f781666 commit 28bab4e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions textattack/loggers/weights_and_biases_logger.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import wandb

from textattack.shared.utils import html_table_from_rows
from .logger import Logger

class WeightsAndBiasesLogger(Logger):
def __init__(self, filename='', stdout=False):
import wandb
wandb.init(project='textattack')
self._result_table_rows = []

Expand Down

0 comments on commit 28bab4e

Please sign in to comment.