Skip to content

Commit

Permalink
Style: PEP8 them all
Browse files Browse the repository at this point in the history
  • Loading branch information
speedcell4 committed Nov 27, 2023
1 parent 0228ce4 commit ab027fc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tests/test_cky.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import torch
from hypothesis import given, strategies as st
from torch_struct import TreeCRF
from torchnyan import assert_close, assert_grad_close, BATCH_SIZE, device, sizes, TINY_TOKEN_SIZE
from torchnyan import BATCH_SIZE, TINY_TOKEN_SIZE, assert_close, assert_grad_close, device, sizes
from torchrua import C

from torchlatent.cky import cky_partitions, cky_scores, CkyDecoder
from torchlatent.cky import CkyDecoder, cky_partitions, cky_scores
from torchlatent.semiring import Log


Expand Down
4 changes: 2 additions & 2 deletions tests/test_crf.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import torch
from hypothesis import given, strategies as st
from torchcrf import CRF
from torchnyan import assert_close, assert_grad_close, assert_sequence_close, BATCH_SIZE, device, sizes, TOKEN_SIZE
from torchnyan import BATCH_SIZE, TOKEN_SIZE, assert_close, assert_grad_close, assert_sequence_close, device, sizes
from torchrua import C, D, P

from torchlatent.crf import crf_partitions, crf_scores, CrfDecoder
from torchlatent.crf import CrfDecoder, crf_partitions, crf_scores
from torchlatent.semiring import Log


Expand Down
2 changes: 1 addition & 1 deletion tests/test_functional.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import torch
from hypothesis import given, strategies as st
from torchnyan.assertion import assert_close, assert_grad_close
from torchnyan.strategy import device, sizes, TINY_BATCH_SIZE, TINY_TOKEN_SIZE
from torchnyan.strategy import TINY_BATCH_SIZE, TINY_TOKEN_SIZE, device, sizes

from torchlatent.functional import logaddexp, logsumexp

Expand Down
2 changes: 1 addition & 1 deletion torchlatent/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import torch
import torch.autograd
from torch import nn, Tensor
from torch import Tensor, nn
from torch.distributions.utils import lazy_property
from torchrua import C, D, P

Expand Down
2 changes: 1 addition & 1 deletion torchlatent/crf.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Tuple, Type, Union

import torch
from torch import nn, Tensor
from torch import Tensor, nn
from torch.distributions.utils import lazy_property
from torch.nn import init
from torchrua import C, D, P
Expand Down

0 comments on commit ab027fc

Please sign in to comment.