File: dred_rdovae_enc_data.h

package info (click to toggle)
opus 1.5.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,860 kB
  • sloc: ansic: 592,652; sh: 4,541; asm: 723; makefile: 457; perl: 264; python: 77
file content (109 lines) | stat: -rw-r--r-- 2,027 bytes parent folder | download
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/* Auto generated from checkpoint rdovae_sparse5m_32.pth */


#ifndef DRED_RDOVAE_ENC_DATA_H
#define DRED_RDOVAE_ENC_DATA_H

#include "nnet.h"


#include "opus_types.h"

#include "dred_rdovae.h"

#include "dred_rdovae_constants.h"


#define ENC_DENSE1_OUT_SIZE 64

#define ENC_ZDENSE_OUT_SIZE 24

#define GDENSE1_OUT_SIZE 128

#define GDENSE2_OUT_SIZE 24

#define ENC_GRU1_OUT_SIZE 64

#define ENC_GRU1_STATE_SIZE 64

#define ENC_GRU2_OUT_SIZE 64

#define ENC_GRU2_STATE_SIZE 64

#define ENC_GRU3_OUT_SIZE 64

#define ENC_GRU3_STATE_SIZE 64

#define ENC_GRU4_OUT_SIZE 64

#define ENC_GRU4_STATE_SIZE 64

#define ENC_GRU5_OUT_SIZE 64

#define ENC_GRU5_STATE_SIZE 64

#define ENC_CONV1_OUT_SIZE 96

#define ENC_CONV1_IN_SIZE 128

#define ENC_CONV1_STATE_SIZE (128 * (1))

#define ENC_CONV1_DELAY 0

#define ENC_CONV2_OUT_SIZE 96

#define ENC_CONV2_IN_SIZE 288

#define ENC_CONV2_STATE_SIZE (288 * (1))

#define ENC_CONV2_DELAY 0

#define ENC_CONV3_OUT_SIZE 96

#define ENC_CONV3_IN_SIZE 448

#define ENC_CONV3_STATE_SIZE (448 * (1))

#define ENC_CONV3_DELAY 0

#define ENC_CONV4_OUT_SIZE 96

#define ENC_CONV4_IN_SIZE 608

#define ENC_CONV4_STATE_SIZE (608 * (1))

#define ENC_CONV4_DELAY 0

#define ENC_CONV5_OUT_SIZE 96

#define ENC_CONV5_IN_SIZE 768

#define ENC_CONV5_STATE_SIZE (768 * (1))

#define ENC_CONV5_DELAY 0

struct RDOVAEEnc {
    LinearLayer enc_dense1;
    LinearLayer enc_zdense;
    LinearLayer gdense1;
    LinearLayer gdense2;
    LinearLayer enc_gru1_input;
    LinearLayer enc_gru1_recurrent;
    LinearLayer enc_gru2_input;
    LinearLayer enc_gru2_recurrent;
    LinearLayer enc_gru3_input;
    LinearLayer enc_gru3_recurrent;
    LinearLayer enc_gru4_input;
    LinearLayer enc_gru4_recurrent;
    LinearLayer enc_gru5_input;
    LinearLayer enc_gru5_recurrent;
    LinearLayer enc_conv1;
    LinearLayer enc_conv2;
    LinearLayer enc_conv3;
    LinearLayer enc_conv4;
    LinearLayer enc_conv5;
};

int init_rdovaeenc(RDOVAEEnc *model, const WeightArray *arrays);

#endif /* DRED_RDOVAE_ENC_DATA_H */