flavioschneider commited on
Commit
57b6cde
·
1 Parent(s): a32bdb2

Upload AutoEncoder1d

Browse files
Files changed (2) hide show
  1. autoencoder.py +1 -1
  2. config.json +6 -1
autoencoder.py CHANGED
@@ -1,5 +1,5 @@
1
  from transformers import PreTrainedModel
2
- from package.audio_encoders_pytorch import AutoEncoder1d as AE1d, TanhBottleneck
3
  from .autoencoder_config import AutoEncoder1dConfig
4
 
5
  bottleneck = { 'tanh': TanhBottleneck }
 
1
  from transformers import PreTrainedModel
2
+ from audio_encoders_pytorch import AutoEncoder1d as AE1d, TanhBottleneck
3
  from .autoencoder_config import AutoEncoder1dConfig
4
 
5
  bottleneck = { 'tanh': TanhBottleneck }
config.json CHANGED
@@ -1,6 +1,10 @@
1
  {
 
 
 
2
  "auto_map": {
3
- "AutoConfig": "autoencoder_config.AutoEncoder1dConfig"
 
4
  },
5
  "bottleneck": "tanh",
6
  "channels": 32,
@@ -32,5 +36,6 @@
32
  8
33
  ],
34
  "patch_size": 4,
 
35
  "transformers_version": "4.24.0"
36
  }
 
1
  {
2
+ "architectures": [
3
+ "AutoEncoder1d"
4
+ ],
5
  "auto_map": {
6
+ "AutoConfig": "autoencoder_config.AutoEncoder1dConfig",
7
+ "AutoModel": "autoencoder.AutoEncoder1d"
8
  },
9
  "bottleneck": "tanh",
10
  "channels": 32,
 
36
  8
37
  ],
38
  "patch_size": 4,
39
+ "torch_dtype": "float32",
40
  "transformers_version": "4.24.0"
41
  }