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

RuntimeError: Graph is finalized and cannot be modified #18

Open
youthM opened this issue Mar 28, 2018 · 0 comments
Open

RuntimeError: Graph is finalized and cannot be modified #18

youthM opened this issue Mar 28, 2018 · 0 comments

Comments

@youthM
Copy link

youthM commented Mar 28, 2018

An error when running train.py

File "D:\Program Files\Anaconda3\envs\tensorflow\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile
execfile(filename, namespace)
File "D:\Program Files\Anaconda3\envs\tensorflow\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "E:/SRGAN-master/train.py", line 23, in
data = tf.sg_data.Mnist(batch_size=batch_size)
File "D:\Program Files\Anaconda3\envs\tensorflow\lib\site-packages\sugartensor\sg_data.py", line 54, in init
_data_to_tensor([_train.images, _train.labels.astype('int32')], batch_size, name='train')
File "D:\Program Files\Anaconda3\envs\tensorflow\lib\site-packages\sugartensor\sg_data.py", line 22, in _data_to_tensor
const_list = [tf.constant(data) for data in data_list]
File "D:\Program Files\Anaconda3\envs\tensorflow\lib\site-packages\sugartensor\sg_data.py", line 22, in
const_list = [tf.constant(data) for data in data_list]
File "D:\Program Files\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\framework\constant_op.py", line 220, in constant
name=name).outputs[0]
File "D:\Program Files\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\framework\ops.py", line 3246, in create_op
self._check_not_finalized()
File "D:\Program Files\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\framework\ops.py", line 2880, in _check_not_finalized
raise RuntimeError("Graph is finalized and cannot be modified.")
RuntimeError: Graph is finalized and cannot be modified.

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