done logic to instantiate graph, test to check instantiation

This commit is contained in:
evonneng committed 2022-04-09 05:12:14 +00:00
1 parent 91f57726ae
commit 62aee54611
6 files changed
+84 -26

No files matched your search

+2 -2
View File
@@ -8,9 +8,9 @@ from torchtyping import TensorType
class Encoding(nn.Module):
"""Encode an input tensor. Intended to be subclassed"""
def __init__(self, name: str, inputs: list, meta_data: dict) -> None:
def __init__(self, out_dim: int) -> None:
super().__init__()
raise NotImplementedError
# raise NotImplementedError
def encode(self, in_tensor: TensorType[..., "input_dim"]) -> TensorType[..., "output_dim"]:
"""Encodes an input tensor.