nshtrainer 0.6.1__py3-none-any.whl → 0.6.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
nshtrainer/nn/mlp.py CHANGED
@@ -7,7 +7,7 @@ import torch
7
7
  import torch.nn as nn
8
8
  from typing_extensions import TypedDict, override
9
9
 
10
- from .nonlinearity import BaseNonlinearityConfig
10
+ from .nonlinearity import BaseNonlinearityConfig, NonlinearityConfig
11
11
 
12
12
 
13
13
  @runtime_checkable
@@ -30,7 +30,7 @@ class MLPConfigDict(TypedDict):
30
30
  no_bias_scalar: bool
31
31
  """Whether to exclude bias terms when the output dimension is 1."""
32
32
 
33
- nonlinearity: BaseNonlinearityConfig | None
33
+ nonlinearity: NonlinearityConfig | None
34
34
  """Activation function to use between layers."""
35
35
 
36
36
  ln: bool | Literal["pre", "post"]
@@ -50,7 +50,7 @@ class MLPConfig(C.Config):
50
50
  no_bias_scalar: bool = True
51
51
  """Whether to exclude bias terms when the output dimension is 1."""
52
52
 
53
- nonlinearity: BaseNonlinearityConfig | None = None
53
+ nonlinearity: NonlinearityConfig | None = None
54
54
  """Activation function to use between layers."""
55
55
 
56
56
  ln: bool | Literal["pre", "post"] = False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nshtrainer
3
- Version: 0.6.1
3
+ Version: 0.6.2
4
4
  Summary:
5
5
  Author: Nima Shoghi
6
6
  Author-email: nimashoghi@gmail.com
@@ -42,7 +42,7 @@ nshtrainer/model/modules/profiler.py,sha256=rQ_jRMcM1Z2AIROZlRnBRHM5rkTpq67afZPD
42
42
  nshtrainer/model/modules/rlp_sanity_checks.py,sha256=o6gUceFwsuDHmL8eLOYuT3JGXFzq_qc4awl2RWaBygU,8900
43
43
  nshtrainer/model/modules/shared_parameters.py,sha256=mD5wrlBE3c025vzVdTpnSyC8yxzuI-aUWMmPhqPT0a0,2694
44
44
  nshtrainer/nn/__init__.py,sha256=0QPFl02a71WZQjLMGOlFNMmsYP5aa1q3eABHmnWH58Q,1427
45
- nshtrainer/nn/mlp.py,sha256=tX1VdtdzB0dyMkV0oEGCcob9hsYrXEIeusXfb-bJ5lQ,5940
45
+ nshtrainer/nn/mlp.py,sha256=V0FrScpIUdg_IgIO8GMtIsGEtmHjwF14i2IWxmZrsqg,5952
46
46
  nshtrainer/nn/module_dict.py,sha256=NOY0B6WDTnktyWH4GthsprMQo0bpehC-hCq9SfD8paE,2329
47
47
  nshtrainer/nn/module_list.py,sha256=fb2u5Rqdjff8Pekyr9hkCPkBorQ-fldzzFAjsgWAm30,1719
48
48
  nshtrainer/nn/nonlinearity.py,sha256=owtU4kh4G98psD0axOJWVfBhm-OtJVgFM-TXSHmbNPU,3625
@@ -59,6 +59,6 @@ nshtrainer/util/seed.py,sha256=HEXgVs-wldByahOysKwq7506OHxdYTEgmP-tDQVAEkQ,287
59
59
  nshtrainer/util/slurm.py,sha256=rofIU26z3SdL79SF45tNez6juou1cyDLz07oXEZb9Hg,1566
60
60
  nshtrainer/util/typed.py,sha256=NGuDkDzFlc1fAoaXjOFZVbmj0mRFjsQi1E_hPa7Bn5U,128
61
61
  nshtrainer/util/typing_utils.py,sha256=8ptjSSLZxlmy4FY6lzzkoGoF5fGNClo8-B_c0XHQaNU,385
62
- nshtrainer-0.6.1.dist-info/METADATA,sha256=A99lygdq2iZY6oebqY5iOFcU71GX0t_cQN3cwKUlCVg,788
63
- nshtrainer-0.6.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
64
- nshtrainer-0.6.1.dist-info/RECORD,,
62
+ nshtrainer-0.6.2.dist-info/METADATA,sha256=TTXxrNVSf7oLTDywORfH9G0gH8oDHsNTuYsucQw5BWE,788
63
+ nshtrainer-0.6.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
64
+ nshtrainer-0.6.2.dist-info/RECORD,,