Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

#604 fix master installation

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:feature/SG-000_fix_master_inastallation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
  1. from torch import nn
  2. class Residual(nn.Module):
  3. """
  4. This is a placeholder module used by the quantization engine only.
  5. This module will be replaced by converters.
  6. The module is to be used as a residual skip connection within a single block.
  7. """
  8. def forward(self, x):
  9. return x
  10. class SkipConnection(nn.Module):
  11. """
  12. This is a placeholder module used by the quantization engine only.
  13. This module will be replaced by converters.
  14. The module is to be used as a skip connection between blocks.
  15. """
  16. def forward(self, x):
  17. return x
  18. class BackboneInternalSkipConnection(SkipConnection):
  19. """
  20. This is a placeholder module used by the quantization engine only.
  21. This module will be replaced by converters.
  22. The module is to be used as a skip connection between blocks inside the backbone.
  23. """
  24. class HeadInternalSkipConnection(SkipConnection):
  25. """
  26. This is a placeholder module used by the quantization engine only.
  27. This module will be replaced by converters.
  28. The module is to be used as a skip connection between blocks inside the head.
  29. """
  30. class CrossModelSkipConnection(SkipConnection):
  31. """
  32. This is a placeholder module used by the quantization engine only.
  33. This module will be replaced by converters.
  34. The module is to be used as a skip connection between backbone and the head.
  35. """
Discard
Tip!

Press p or to see the previous file or, n or to see the next file