Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. indim = input_shp[0]
  2. self.linear0 = nn.Linear(indim, config.num_unit)
  3. for i in range(1, config.num_hidden-1):
  4. setattr(self, "linear"+str(i), nn.Linear(config.num_unit, config.num_unit))
  5. setattr(self, "linear"+str(config.num_hidden-1), nn.Linear(config.num_unit, config.num_class))
  6.  
  7. self.output = nn.Linear(indim, config.num_class)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement