It's TV script generating code. But, cuda runtime error is occurred

run the cell multiple times to get different results!

gen_length = 200 # modify the length to your preference
prime_word = ‘elaine’ # name for starting the script
#flatten_parameters()

“”"
DON’T MODIFY ANYTHING IN THIS CELL THAT IS BELOW THIS LINE
“”"
pad_word = helper.SPECIAL_WORDS[‘PADDING’]
generated_script = generate(trained_rnn, vocab_to_int[prime_word + ‘:’], int_to_vocab, token_dict, vocab_to_int[pad_word], gen_length)
print(generated_script)

I don’t know why this part always causes errors. Would you give me some helps? Thank you very much.

@youngs508 What is the exact type of error? RuntimeError: cuda runtime error (30), RuntimeError: cuda runtime error (59) or RuntimeError: cuda runtime error (2)?

It’s cuda runtime error (59). What is your opinion to solve this problem? Thank you very much. ^^

1 Like

Hope this will help:
RuntimeError: cuda runtime error (59)

Thank you for your kind advice.

1 Like