Skip to content

Commit

Permalink
Update onnx_export.py
Browse files Browse the repository at this point in the history
  • Loading branch information
NaruseMioShirakana authored Apr 18, 2023
1 parent 578c243 commit 5570594
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion onnx_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ def main(NetExport):
i.requires_grad = False

n_frame = 10
test_hidden_unit = torch.rand(1, n_frame, 256)
hidden_channels = 256 #(Hubert's shape[2])

test_hidden_unit = torch.rand(1, n_frame, hidden_channels)
test_pitch = torch.rand(1, n_frame)
test_mel2ph = torch.arange(0, n_frame, dtype=torch.int64)[None] # torch.LongTensor([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]).unsqueeze(0)
test_uv = torch.ones(1, n_frame, dtype=torch.float32)
Expand Down

0 comments on commit 5570594

Please sign in to comment.