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
b22b11a4
Unverified
Commit
b22b11a4
authored
1 year ago
by
Jean-Marc Valin
Browse files
Options
Downloads
Patches
Plain Diff
Silence some warnings
Including removing useless code
parent
ddd5669e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#4163
failed
1 year ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dnn/dred_rdovae.c
+0
-36
0 additions, 36 deletions
dnn/dred_rdovae.c
dnn/lpcnet_enc.c
+2
-2
2 additions, 2 deletions
dnn/lpcnet_enc.c
with
2 additions
and
38 deletions
dnn/dred_rdovae.c
+
0
−
36
View file @
b22b11a4
...
...
@@ -51,16 +51,6 @@ void DRED_rdovae_decode_all(const RDOVAEDec *model, float *features, const float
}
}
size_t
DRED_rdovae_get_enc_size
()
{
return
sizeof
(
RDOVAEEncState
);
}
size_t
DRED_rdovae_get_dec_size
()
{
return
sizeof
(
RDOVAEDecState
);
}
void
DRED_rdovae_init_encoder
(
RDOVAEEncState
*
enc_state
)
{
memset
(
enc_state
,
0
,
sizeof
(
*
enc_state
));
...
...
@@ -73,32 +63,6 @@ void DRED_rdovae_init_decoder(RDOVAEDecState *dec_state)
}
RDOVAEEncState
*
DRED_rdovae_create_encoder
()
{
RDOVAEEncState
*
enc
;
enc
=
(
RDOVAEEncState
*
)
calloc
(
sizeof
(
*
enc
),
1
);
DRED_rdovae_init_encoder
(
enc
);
return
enc
;
}
RDOVAEDecState
*
DRED_rdovae_create_decoder
()
{
RDOVAEDecState
*
dec
;
dec
=
(
RDOVAEDecState
*
)
calloc
(
sizeof
(
*
dec
),
1
);
DRED_rdovae_init_decoder
(
dec
);
return
dec
;
}
void
DRED_rdovae_destroy_decoder
(
RDOVAEDecState
*
dec
)
{
free
(
dec
);
}
void
DRED_rdovae_destroy_encoder
(
RDOVAEEncState
*
enc
)
{
free
(
enc
);
}
void
DRED_rdovae_encode_dframe
(
RDOVAEEncState
*
enc_state
,
const
RDOVAEEnc
*
model
,
float
*
latents
,
float
*
initial_state
,
const
float
*
input
)
{
dred_rdovae_encode_dframe
(
enc_state
,
model
,
latents
,
initial_state
,
input
);
...
...
This diff is collapsed.
Click to expand it.
dnn/lpcnet_enc.c
+
2
−
2
View file @
b22b11a4
...
...
@@ -44,7 +44,7 @@
#include
"_kiss_fft_guts.h"
int
lpcnet_encoder_get_size
()
{
int
lpcnet_encoder_get_size
(
void
)
{
return
sizeof
(
LPCNetEncState
);
}
...
...
@@ -54,7 +54,7 @@ int lpcnet_encoder_init(LPCNetEncState *st) {
return
0
;
}
LPCNetEncState
*
lpcnet_encoder_create
()
{
LPCNetEncState
*
lpcnet_encoder_create
(
void
)
{
LPCNetEncState
*
st
;
st
=
malloc
(
lpcnet_encoder_get_size
());
lpcnet_encoder_init
(
st
);
...
...
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