Skip to content
Snippets Groups Projects
Commit 4f9448a2 authored by Maja Jabłońska's avatar Maja Jabłońska Committed by Martyna Wiącek
Browse files

Clean up base.py

parent 8c4b7eaf
Branches
Tags
1 merge request!46Merge COMBO 3.0 into master
...@@ -5,10 +5,7 @@ import torch.nn as nn ...@@ -5,10 +5,7 @@ import torch.nn as nn
import utils import utils
import combo.models.combo_nn as combo_nn import combo.models.combo_nn as combo_nn
import combo.utils.checks as checks import combo.utils.checks as checks
from combo import data
class Model:
pass
class Predictor(nn.Module): class Predictor(nn.Module):
...@@ -21,7 +18,6 @@ class Predictor(nn.Module): ...@@ -21,7 +18,6 @@ class Predictor(nn.Module):
class Linear(nn.Linear): class Linear(nn.Linear):
def __init__(self, def __init__(self,
in_features: int, in_features: int,
out_features: int, out_features: int,
...@@ -147,7 +143,6 @@ class FeedForward(torch.nn.Module): ...@@ -147,7 +143,6 @@ class FeedForward(torch.nn.Module):
return output, feature_maps return output, feature_maps
class FeedForwardPredictor(Predictor): class FeedForwardPredictor(Predictor):
"""Feedforward predictor. Should be used on top of Seq2Seq encoder.""" """Feedforward predictor. Should be used on top of Seq2Seq encoder."""
...@@ -216,4 +211,3 @@ class FeedForwardPredictor(Predictor): ...@@ -216,4 +211,3 @@ class FeedForwardPredictor(Predictor):
hidden_dims=hidden_dims, hidden_dims=hidden_dims,
activations=activations, activations=activations,
dropout=dropout)) dropout=dropout))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment