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 #6

Open
daniyal72 opened this issue Sep 7, 2020 · 0 comments
Open

ValueError #6

daniyal72 opened this issue Sep 7, 2020 · 0 comments

Comments

@daniyal72
Copy link

Hello,
I got this error after executing the code,
Thank you for your help.


Exception has occurred: ValueError
in user code:

D:\Python37\lib\site-packages\tensorflow\python\keras\engine\training.py:806 train_function *
return step_function(self, iterator)
e:\BRDNet\BRDNet12_2\BRDNet12\grayimage\batch_renorm.py:180 call *
self.add_update([K.update(self.r_max, r_val),
D:\Python37\lib\site-packages\tensorflow\python\keras\backend.py:959 variable **
constraint=constraint)
D:\Python37\lib\site-packages\tensorflow\python\ops\variables.py:262 call
return cls._variable_v2_call(*args, **kwargs)
D:\Python37\lib\site-packages\tensorflow\python\ops\variables.py:256 _variable_v2_call
shape=shape)
D:\Python37\lib\site-packages\tensorflow\python\ops\variables.py:67 getter
return captured_getter(captured_previous, **kwargs)
D:\Python37\lib\site-packages\tensorflow\python\distribute\distribute_lib.py:2857 creator
return next_creator(**kwargs)
D:\Python37\lib\site-packages\tensorflow\python\ops\variables.py:67 getter
return captured_getter(captured_previous, **kwargs)
D:\Python37\lib\site-packages\tensorflow\python\distribute\distribute_lib.py:2857 creator
return next_creator(**kwargs)
D:\Python37\lib\site-packages\tensorflow\python\ops\variables.py:67 getter
return captured_getter(captured_previous, **kwargs)
D:\Python37\lib\site-packages\tensorflow\python\distribute\distribute_lib.py:2857 creator
return next_creator(**kwargs)
D:\Python37\lib\site-packages\tensorflow\python\ops\variables.py:67 getter
return captured_getter(captured_previous, **kwargs)
D:\Python37\lib\site-packages\tensorflow\python\eager\def_function.py:702 invalid_creator_scope
"tf.function-decorated function tried to create "

ValueError: tf.function-decorated function tried to create variables on non-first call.
File "E:\BRDNet\BRDNet12_2\BRDNet12\grayimage\mainimprovement.py", line 130, in train
callbacks=[ckpt, csv_logger, lr])
File "E:\BRDNet\BRDNet12_2\BRDNet12\grayimage\mainimprovement.py", line 187, in
model = train()

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