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!
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

14 řádky
320B

  1. import torch
  2. from typing import List, \
  3. Union
  4. class Layer(torch.nn.Module):
  5. def __init__(self,
  6. output_dim: Union[int, List[int]],
  7. is_sparse: bool,
  8. **kwargs) -> None:
  9. super().__init__(**kwargs)
  10. self.output_dim = output_dim
  11. self.is_sparse = is_sparse