run wrongly with CPU
I excute the code textgen = textgenrnn() textgen.reset() file="reddit_rarepuppers_politics_2000_context.csv" textgen.train_from_file(file, context=True,new_model=True, num_epochs=10, gen_epochs=5, word_level=True) if i use GPU to run this code, it's OK. but with CPU, it gave me error like this :> ValueError: The two structures don't have the same nested structure.
First structure: type=tuple str=(array([[0., 0., 0., ..., 0., 0., 0.], [0., 0., 0., ..., 0., 0., 0.], [0., 0., 0., ..., 0., 0., 0.], ..., [0., 0., 0., ..., 0., 0., 0.], [0., 0., 1., ..., 0., 0., 0.], [0., 0., 0., ..., 0., 0., 0.]], dtype=float32), array([[0., 0., 0., ..., 0., 0., 0.], [0., 0., 0., ..., 0., 0., 0.], [0., 0., 0., ..., 0., 0., 0.], ..., [0., 0., 0., ..., 0., 0., 0.], [0., 0., 1., ..., 0., 0., 0.], [0., 0., 0., ..., 0., 0., 0.]], dtype=float32))
Second structure: type=tuple str=(None,)
I have a similar problem.
it only uses cpu