This commit is contained in:
w-okada 2023-11-20 07:42:07 +09:00
parent c2b031efa5
commit 6bda815669

View File

@ -52,6 +52,7 @@ class LLVCInferencer:
inputTensor = torch.cat([self.front_ctx, inputTensor]) inputTensor = torch.cat([self.front_ctx, inputTensor])
self.front_ctx = inputTensor[-L * 2 :] self.front_ctx = inputTensor[-L * 2 :]
# すさまじい勢いでメモリリークしていく。。。?要調査
audio1, self.enc_buf, self.dec_buf, self.out_buf, self.convnet_pre_ctx = self.model( audio1, self.enc_buf, self.dec_buf, self.out_buf, self.convnet_pre_ctx = self.model(
inputTensor.unsqueeze(0).unsqueeze(0), inputTensor.unsqueeze(0).unsqueeze(0),
self.enc_buf, self.enc_buf,