Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: num_outputs should be int or long, got 400. #19

Open
lweqwef789 opened this issue Apr 24, 2023 · 0 comments
Open

ValueError: num_outputs should be int or long, got 400. #19

lweqwef789 opened this issue Apr 24, 2023 · 0 comments

Comments

@lweqwef789
Copy link

Traceback (most recent call last):
File "D:\ProgramData\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2862, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
runfile('G:/Users/PycharmProjects/untitl2/NeuralDialog-CVAE-master/NeuralDialog-CVAE-master/kgcvae_swda.py', wdir='G:/Users/PycharmProjects/untitl2/NeuralDialog-CVAE-master/NeuralDialog-CVAE-master')
File "G:\Program Files\JetBrains\PyCharm 2020.1\plugins\python\helpers\pydev_pydev_bundle\pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "G:\Program Files\JetBrains\PyCharm 2020.1\plugins\python\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "G:/Users/PycharmProjects/untitl2/NeuralDialog-CVAE-master/NeuralDialog-CVAE-master/kgcvae_swda.py", line 169, in
main()
File "G:/Users/PycharmProjects/untitl2/NeuralDialog-CVAE-master/NeuralDialog-CVAE-master/kgcvae_swda.py", line 72, in main
model = KgRnnCVAE(sess, config, api, log_dir=None if FLAGS.forward_only else log_dir, forward=False, scope=scope)
File "G:\Users\PycharmProjects\untitl2\NeuralDialog-CVAE-master\NeuralDialog-CVAE-master\models\cvae.py", line 257, in init
activation_fn=tf.tanh, scope="fc1")
File "D:\ProgramData\Anaconda3\lib\site-packages\tensorflow\contrib\framework\python\ops\arg_scope.py", line 181, in func_with_args
return func(*args, **current_args)
File "D:\ProgramData\Anaconda3\lib\site-packages\tensorflow\contrib\layers\python\layers\layers.py", line 1638, in fully_connected
'num_outputs should be int or long, got %s.' % (num_outputs,))
ValueError: num_outputs should be int or long, got 400.

how to solve it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant