IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
392B

  1. #
  2. # Copyright (C) Stanislaw Adaszewski, 2020
  3. # License: GPLv3
  4. #
  5. import torch
  6. from typing import List, \
  7. Union
  8. class Layer(torch.nn.Module):
  9. def __init__(self,
  10. output_dim: Union[int, List[int]],
  11. is_sparse: bool,
  12. **kwargs) -> None:
  13. super().__init__(**kwargs)
  14. self.output_dim = output_dim
  15. self.is_sparse = is_sparse