Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Opus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
Opus
Commits
8accadcc
Commit
8accadcc
authored
2 years ago
by
Jan Buethe
Browse files
Options
Downloads
Patches
Plain Diff
more fixes
parent
d0b1cd88
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dnn/kiss_fft.c
+3
-3
3 additions, 3 deletions
dnn/kiss_fft.c
dnn/kiss_fft.h
+1
-1
1 addition, 1 deletion
dnn/kiss_fft.h
dnn/training_tf2/dump_rdovae.py
+16
-4
16 additions, 4 deletions
dnn/training_tf2/dump_rdovae.py
with
20 additions
and
8 deletions
dnn/kiss_fft.c
+
3
−
3
View file @
8accadcc
...
...
@@ -506,10 +506,10 @@ void opus_fft_free(const kiss_fft_state *cfg, int arch)
if
(
cfg
)
{
opus_fft_free_arch
((
kiss_fft_state
*
)
cfg
,
arch
);
opus_
free
((
opus_int16
*
)
cfg
->
bitrev
);
free
((
opus_int16
*
)
cfg
->
bitrev
);
if
(
cfg
->
shift
<
0
)
opus_
free
((
kiss_twiddle_cpx
*
)
cfg
->
twiddles
);
opus_
free
((
kiss_fft_state
*
)
cfg
);
free
((
kiss_twiddle_cpx
*
)
cfg
->
twiddles
);
free
((
kiss_fft_state
*
)
cfg
);
}
}
...
...
This diff is collapsed.
Click to expand it.
dnn/kiss_fft.h
+
1
−
1
View file @
8accadcc
...
...
@@ -35,7 +35,7 @@
#include
<stdlib.h>
#define opus_alloc(x) malloc(x)
#define opus_free(x) free(x)
//
#define opus_free(x) free(x)
#ifdef __cplusplus
extern
"C"
{
...
...
This diff is collapsed.
Click to expand it.
dnn/training_tf2/dump_rdovae.py
+
16
−
4
View file @
8accadcc
...
...
@@ -25,8 +25,6 @@ f"""
#ifndef
{
header_guard
}
#define
{
header_guard
}
#include
"
nnet.h
"
"""
)
...
...
@@ -119,6 +117,14 @@ if __name__ == "__main__":
start_header
(
header_fid
,
"
dred_rdovae_enc_data.h
"
)
start_source
(
source_fid
,
"
dred_rdovae_enc_data.h
"
,
os
.
path
.
basename
(
args
.
weights
))
header_fid
.
write
(
f
"""
#include
"
dred_rdovae_constants.h
"
#include
"
nnet.h
"
"""
)
# dump GRUs
max_rnn_neurons_enc
=
max
(
[
...
...
@@ -143,7 +149,6 @@ if __name__ == "__main__":
# some global constants
header_fid
.
write
(
f
"""
#include
"
dred_rdovae_constants.h
"
#define DRED_ENC_MAX_RNN_NEURONS
{
max_rnn_neurons_enc
}
...
...
@@ -206,7 +211,13 @@ f"""
start_header
(
header_fid
,
"
dred_rdovae_dec_data.h
"
)
start_source
(
source_fid
,
"
dred_rdovae_dec_data.h
"
,
os
.
path
.
basename
(
args
.
weights
))
header_fid
.
write
(
f
"""
#include
"
dred_rdovae_constants.h
"
#include
"
nnet.h
"
"""
)
# dump GRUs
...
...
@@ -225,7 +236,6 @@ f"""
# some global constants
header_fid
.
write
(
f
"""
#include
"
dred_rdovae_constants.h
"
#define DRED_DEC_MAX_RNN_NEURONS
{
max_rnn_neurons_dec
}
...
...
@@ -248,6 +258,8 @@ f"""
#define DRED_LATENT_DIM
{
args
.
latent_dim
}
#define DRED_STATE_DIM
{
24
}
#define DRED_NUM_QUANTIZATION_LEVELS
{
qembedding
.
weights
[
0
].
shape
[
0
]
}
#define DRED_MAX_RNN_NEURONS
{
max
(
max_rnn_neurons_enc
,
max_rnn_neurons_dec
)
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment