Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upHow can i see the values, tf.log(predict_real + EPS) and tf.log(1 - predict_fake + EPS) ?? #152
Comments
|
You posted it to the wrong repo. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want see the values while training, tf.log(predict_real + EPS) and tf.log(1 - predict_fake + EPS).
so, i'm add the code(#add code) in the main.
but, this code is error...
Traceback (most recent call last):
File "pix2pix.py", line 809, in
main()
File "pix2pix.py", line 763, in main
fetches["predict_real"] = tf.log(model.predict_real + EPS) #add code
File "C:\Users\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\ops\math_ops.py", line 850, in binary_op_wrapper
y = ops.convert_to_tensor(y, dtype=x.dtype.base_dtype, name="y")
File "C:\Users\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\framework\ops.py", line 1011, in convert_to_tensor
as_ref=False)
File "C:\Users\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\framework\ops.py", line 1107, in internal_convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "C:\Users\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\framework\constant_op.py", line 217, in _constant_tensor_conversion_function
return constant(v, dtype=dtype, name=name)
File "C:\Users\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\framework\constant_op.py", line 202, in constant
name=name).outputs[0]
File "C:\Users\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\framework\ops.py", line 3386, in create_op
self._check_not_finalized()
File "C:\Users\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\framework\ops.py", line 3024, in _check_not_finalized
raise RuntimeError("Graph is finalized and cannot be modified.")
RuntimeError: Graph is finalized and cannot be modified.
How can i see the values ???