delete duplicate line for encoder initial state (#765)

This commit is contained in:
kobenaxie 2022-12-15 20:42:07 +08:00 committed by GitHub
parent ad475ec10d
commit 6d659f423d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,7 +152,6 @@ def export_encoder_model_jit_trace(
x = torch.zeros(1, T, 80, dtype=torch.float32)
states = encoder_model.init_states()
states = encoder_model.init_states()
traced_model = torch.jit.trace(encoder_model, (x, states))
traced_model.save(encoder_filename)