controlled-text-generation
controlled-text-generation copied to clipboard
TypeError: multinomial() missing 1 required positional arguments: "num_samples"
There is a small problem with the model.py file. Python reported an error when it goes to line 297, where there is a missing argument for the multinomial function.
Looks like the default num_samples
argument in older versions of pytorch was 1: [https://github.com/pytorch/pytorch/issues/2546] I'm guessing that's the case here since no value was explicitly set. You should just be able to add the argument to the multinomial function to get rid of the error
multinomial() missing 1 required positional arguments: "num_samples" how to solve the issue
while running the AI Car program
multinomial() missing 1 required positional arguments: "num_samples" how to solve the issue
you can pass num_samples=1 as parameter, hopefully it will work fine.