InvalidArgumentError

ohadkro

New member
InvalidArgumentError

הקוד הזה:
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/tutorials/input_fn/boston.py

(מופיע גם כאן:
https://www.tensorflow.org/get_started/input_fn
)

נותן לי את הודעת השגיאה:
קוד:
InvalidArgumentError: Nan in summary histogram for: dnn/dnn/hiddenlayer_0/activation
	 [[Node: dnn/dnn/hiddenlayer_0/activation = HistogramSummary[T=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:CPU:0"](dnn/dnn/hiddenlayer_0/activation/tag, dnn/hiddenlayer_0/Relu)]]

During handling of the above exception, another exception occurred:

InvalidArgumentError                      Traceback (most recent call last)
<ipython-input-1-454baaebfa2b> in <module>()
     77 
     78 if __name__ == "__main__":
---> 79   tf.app.run()

C:\Users\i\Anaconda3\lib\site-packages\tensorflow\python\platform\app.py in run(main, argv)
     46   # Call the main function, passing through any arguments
     47   # to the final program.
---> 48   _sys.exit(main(_sys.argv[:1] + flags_passthrough))
     49 
     50 

<ipython-input-1-454baaebfa2b> in main(unused_argv)
     60 
     61   # Train
---> 62   regressor.train(input_fn=get_input_fn(training_set), steps=5000)
     63 
     64   # Evaluate loss over one epoch of test_set.

מה לא תקין ב:
regressor.train(input_fn=get_input_fn(training_set), steps=5000)

?

פייתון 3.5 , tensorflow ו numpy מעודכנים .

בתודה מראש
 
למעלה