You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()
The text was updated successfully, but these errors were encountered:
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()
The text was updated successfully, but these errors were encountered: