optimized the imports

This commit is contained in:
Dr. Kashif Rasul
2020-03-30 13:01:08 +02:00
parent 47063478b7
commit cb012405bf
69 changed files with 180 additions and 248 deletions
+5 -6
View File
@@ -1,13 +1,9 @@
import pytest
from typing import Iterable, List, Tuple
from typing import List, Tuple
import numpy as np
import pytest
import torch
import torch.nn as nn
from torch.nn.utils import clip_grad_norm_
from torch.utils.data import TensorDataset, DataLoader
from torch.optim import SGD
from torch.distributions import (
StudentT,
Beta,
@@ -17,6 +13,9 @@ from torch.distributions import (
Independent,
Normal,
)
from torch.nn.utils import clip_grad_norm_
from torch.optim import SGD
from torch.utils.data import TensorDataset, DataLoader
from pts.modules import (
DistributionOutput,
+1 -3
View File
@@ -1,10 +1,8 @@
import pytest
from itertools import chain, combinations
import pytest
import torch
import torch.nn as nn
from torch.distributions import Uniform
from pts.modules import FeatureEmbedder, FeatureAssembler
+1 -3
View File
@@ -11,14 +11,12 @@
# express or implied. See the License for the specific language governing
# permissions and limitations under the License.
import pytest
import numpy as np
import pytest
import torch
from pts.modules import MeanScaler, NOPScaler
test_cases = [
(
MeanScaler(),