if(torch::torch_is_installed()) {
stretch2d = model_stretch2d(time_scale=10, freq_scale=5)
input = torch::torch_rand(10, 100, 512) # a random spectrogram
output = stretch2d(input) # shape: (10, 500, 5120)
}
Run the code above in your browser using DataLab