SRGAN icon indicating copy to clipboard operation
SRGAN copied to clipboard

WARNING:

Open SlimRG opened this issue 5 years ago • 1 comments

WARNING: Logging before flag parsing goes to stderr. W0519 22:40:41.226523 15848 deprecation.py:323] From C:\Users\BBCCA\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\data\ops\dataset_ops.py:410: py_func (from tensorflow.python.ops.script_ops) is deprecated and will be removed in a future version. Instructions for updating: tf.py_func is deprecated in TF V2. Instead, there are two options available in V2. - tf.py_function takes a python function which manipulates tf eager tensors instead of numpy arrays. It's easy to convert a tf eager tensor to an ndarray (just call tensor.numpy()) but having access to eager tensors means tf.py_functions can use accelerators such as GPUs as well as being differentiable using a gradient tape. - tf.numpy_function maintains the semantics of the deprecated tf.py_func (it is not differentiable, and manipulates numpy arrays). It drops the stateful argument making all functions stateful.

SlimRG avatar May 19 '19 19:05 SlimRG

thanks for the issue, apart from the warning, is there any thing else need to be improved?

zsdonghao avatar May 25 '19 12:05 zsdonghao