Skip to content

Commit

Permalink
remove tensorboard import
Browse files Browse the repository at this point in the history
  • Loading branch information
gjhuizing committed May 31, 2022
1 parent 4c4f779 commit 89ac499
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions wsingular/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Imports.
from torch.utils.tensorboard import SummaryWriter
import torch
import numpy as np
from typing import Callable, Tuple
Expand All @@ -14,7 +13,7 @@ def wasserstein_singular_vectors(
n_iter: int,
tau: float = 1e-3,
p: int = 1,
writer: SummaryWriter = None,
writer = None,
small_value: float = 1e-6,
normalization_steps: int = 1,
C_ref: torch.Tensor = None,
Expand Down Expand Up @@ -146,7 +145,7 @@ def sinkhorn_singular_vectors(
tau: float = 1e-3,
eps: float = 5e-2,
p: int = 1,
writer: SummaryWriter = None,
writer = None,
small_value: float = 1e-6,
normalization_steps: int = 1,
C_ref: torch.Tensor = None,
Expand Down Expand Up @@ -283,7 +282,7 @@ def stochastic_wasserstein_singular_vectors(
p: int = 1,
step_fn: Callable = lambda k: 1 / np.sqrt(k),
mult_update: bool = False,
writer: SummaryWriter = None,
writer = None,
small_value: float = 1e-6,
normalization_steps: int = 1,
C_ref: torch.Tensor = None,
Expand Down Expand Up @@ -485,7 +484,7 @@ def stochastic_sinkhorn_singular_vectors(
p: int = 1,
step_fn: Callable = lambda k: 1 / np.sqrt(k),
mult_update: bool = False,
writer: SummaryWriter = None,
writer = None,
small_value: float = 1e-6,
normalization_steps: int = 1,
C_ref: torch.Tensor = None,
Expand Down

0 comments on commit 89ac499

Please sign in to comment.