if(torch::torch_is_installed()) {
upsamplenetwork = model_upsample_network(upsample_scales=c(4, 4, 16))
input = torch::torch_rand (10, 128, 10) # a random spectrogram
output = upsamplenetwork (input) # shape: (10, 1536, 128), (10, 1536, 128)
}
Run the code above in your browser using DataLab