The version of tensorflow
wang-ps opened this issue · 4 comments
Could you please provide the tensorflow version you used?
I tried tensorflow 2.0, 1.12, 1.13, but they all failed.
Can you post errors you are getting when you run it?
-
tensorflow 2.0, python 2.7
when installing tensorlayer, the error message is:ERROR: Could not find a version that satisfies the requirement scikit-image==0.15.0 (from tensorlayer) (from versions: 0.7.2, 0.8.0, 0.8.1, 0.8.2, 0.9.0, 0.9.1, 0.9.3, 0.10.0, 0.10.1, 0.11.2, 0.11.3, 0.12.0, 0.12.1, 0.12.2, 0.12.3, 0.13.0, 0.13.1, 0.14.0, 0.14.1, 0.14.2)
ERROR: No matching distribution found for scikit-image==0.15.0 (from tensorlayer) -
tensorflow 1.13.0/1.12.0, python 2.7
tensorlayer is not supported for tensorflow 1.13.0/1.12.0 -
tensorflow 1.11.0, python 2.7
tenserlayer is installed sucessfully.
But when running the code, the error message is:Using TensorFlow backend.
[TL] WARNING: Function:tensorlayer.layers.utils.set_name_reuse
(in file: /usr/local/lib/python2.7/dist-packages/tensorlayer/layers/utils.py) is deprecated and will be removed after 2018-06-30.
Instructions for updating: TensorLayer relies on TensorFlow to check name reusing[TL] WARNING: this method is DEPRECATED and has no effect, please remove it from your code.
[TL] WARNING: this method is DEPRECATED and has no effect, please remove it from your code.
[TL] WARNING: Function:tensorlayer.activation.leaky_relu
(in file: /usr/local/lib/python2.7/dist-packages/tensorlayer/activation.py) is deprecated and will be removed after 2018-09-30.
Instructions for updating: This API is deprecated. Please use astf.nn.leaky_relu
[TL] WARNING: this method is DEPRECATED and has no effect, please remove it from your code.
[TL] WARNING: this method is DEPRECATED and has no effect, please remove it from your code.
2019-06-01 02:25:57.873037: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 AVX512F FMA
2019-06-01 02:26:00.116621: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1411] Found device 0 with properties:
name: GeForce RTX 2080 Ti major: 7 minor: 5 memoryClockRate(GHz): 1.545
pciBusID: 0000:af:00.0
totalMemory: 10.73GiB freeMemory: 10.57GiB
2019-06-01 02:26:00.222735: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1411] Found device 1 with properties:
name: GeForce RTX 2080 Ti major: 7 minor: 5 memoryClockRate(GHz): 1.545
pciBusID: 0000:d8:00.0
totalMemory: 10.73GiB freeMemory: 10.57GiB
2019-06-01 02:26:00.223478: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1490] Adding visible gpu devices: 0, 1
2019-06-01 02:26:01.007506: I tensorflow/core/common_runtime/gpu/gpu_device.cc:971] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-06-01 02:26:01.007566: I tensorflow/core/common_runtime/gpu/gpu_device.cc:977] 0 1
2019-06-01 02:26:01.007573: I tensorflow/core/common_runtime/gpu/gpu_device.cc:990] 0: N N
2019-06-01 02:26:01.007579: I tensorflow/core/common_runtime/gpu/gpu_device.cc:990] 1: N N
2019-06-01 02:26:01.007755: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1103] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 10202 MB memory) -> physical GPU (device: 0, name: GeForce RTX 2080 Ti, pci bus id: 0000:af:00.0, compute capability: 7.5)
2019-06-01 02:26:01.149070: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1103] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:1 with 10202 MB memory) -> physical GPU (device: 1, name: GeForce RTX 2080 Ti, pci bus id: 0000:d8:00.0, compute capability: 7.5)
Traceback (most recent call last):
File "32-3D-IWGan.py", line 83, in
tl.ops.set_gpu_fraction(sess=sess, gpu_fraction=0.998)
AttributeError: 'module' object has no attribute 'ops'
So could you please provide the tensorflow version and all the dependencies for running the code?
Yeah, I cloned the repo and tried to run for the first time in a while, and got the same. I will figure this out and update once I have a few cycles free. sorry for the wait