Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ python
- Python 2.7.12 (default, Nov 19 2016, 06:48:10)
- [GCC 5.4.0 20160609] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>> import keras
- Using TensorFlow backend.
- >>> from keras import backend as K
- >>> m=keras.applications.resnet50.ResNet50()
- 2017-11-04 14:55:20.868695: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
- 2017-11-04 14:55:20.868740: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
- 2017-11-04 14:55:20.868748: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
- 2017-11-04 14:55:20.868759: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
- 2017-11-04 14:55:20.868769: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
- 2017-11-04 14:55:42.159106: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:893] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
- 2017-11-04 14:55:42.159841: I tensorflow/core/common_runtime/gpu/gpu_device.cc:955] Found device 0 with properties:
- name: Tesla K80
- major: 3 minor: 7 memoryClockRate (GHz) 0.8235
- pciBusID 0000:00:17.0
- Total memory: 11.17GiB
- Free memory: 11.10GiB
- 2017-11-04 14:55:42.252396: W tensorflow/stream_executor/cuda/cuda_driver.cc:523] A non-primary context 0x6f90280 exists before initializing the StreamExecutor. We haven't verified StreamExecutor works with that.
- 2017-11-04 14:55:42.252779: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:893] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
- 2017-11-04 14:55:42.253490: I tensorflow/core/common_runtime/gpu/gpu_device.cc:955] Found device 1 with properties:
- name: Tesla K80
- major: 3 minor: 7 memoryClockRate (GHz) 0.8235
- pciBusID 0000:00:18.0
- Total memory: 11.17GiB
- Free memory: 11.10GiB
- 2017-11-04 14:55:42.350080: W tensorflow/stream_executor/cuda/cuda_driver.cc:523] A non-primary context 0x6f947f0 exists before initializing the StreamExecutor. We haven't verified StreamExecutor works with that.
- 2017-11-04 14:55:42.350491: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:893] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
- 2017-11-04 14:55:42.351211: I tensorflow/core/common_runtime/gpu/gpu_device.cc:955] Found device 2 with properties:
- name: Tesla K80
- major: 3 minor: 7 memoryClockRate (GHz) 0.8235
- pciBusID 0000:00:19.0
- Total memory: 11.17GiB
- Free memory: 11.10GiB
- 2017-11-04 14:55:42.450650: W tensorflow/stream_executor/cuda/cuda_driver.cc:523] A non-primary context 0x6fb9af0 exists before initializing the StreamExecutor. We haven't verified StreamExecutor works with that.
- 2017-11-04 14:55:42.451053: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:893] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
- 2017-11-04 14:55:42.451764: I tensorflow/core/common_runtime/gpu/gpu_device.cc:955] Found device 3 with properties:
- name: Tesla K80
- major: 3 minor: 7 memoryClockRate (GHz) 0.8235
- pciBusID 0000:00:1a.0
- Total memory: 11.17GiB
- Free memory: 11.10GiB
- 2017-11-04 14:55:42.554010: W tensorflow/stream_executor/cuda/cuda_driver.cc:523] A non-primary context 0x6fbdb50 exists before initializing the StreamExecutor. We haven't verified StreamExecutor works with that.
- 2017-11-04 14:55:42.554448: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:893] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
- 2017-11-04 14:55:42.555170: I tensorflow/core/common_runtime/gpu/gpu_device.cc:955] Found device 4 with properties:
- name: Tesla K80
- major: 3 minor: 7 memoryClockRate (GHz) 0.8235
- pciBusID 0000:00:1b.0
- Total memory: 11.17GiB
- Free memory: 11.10GiB
- 2017-11-04 14:55:42.662195: W tensorflow/stream_executor/cuda/cuda_driver.cc:523] A non-primary context 0x6fc1bb0 exists before initializing the StreamExecutor. We haven't verified StreamExecutor works with that.
- 2017-11-04 14:55:42.662614: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:893] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
- 2017-11-04 14:55:42.663342: I tensorflow/core/common_runtime/gpu/gpu_device.cc:955] Found device 5 with properties:
- name: Tesla K80
- major: 3 minor: 7 memoryClockRate (GHz) 0.8235
- pciBusID 0000:00:1c.0
- Total memory: 11.17GiB
- Free memory: 11.10GiB
- 2017-11-04 14:55:42.773593: W tensorflow/stream_executor/cuda/cuda_driver.cc:523] A non-primary context 0x6fc5e20 exists before initializing the StreamExecutor. We haven't verified StreamExecutor works with that.
- 2017-11-04 14:55:42.774023: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:893] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
- 2017-11-04 14:55:42.774761: I tensorflow/core/common_runtime/gpu/gpu_device.cc:955] Found device 6 with properties:
- name: Tesla K80
- major: 3 minor: 7 memoryClockRate (GHz) 0.8235
- pciBusID 0000:00:1d.0
- Total memory: 11.17GiB
- Free memory: 11.10GiB
- 2017-11-04 14:55:42.889689: W tensorflow/stream_executor/cuda/cuda_driver.cc:523] A non-primary context 0x6fca360 exists before initializing the StreamExecutor. We haven't verified StreamExecutor works with that.
- 2017-11-04 14:55:42.890147: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:893] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
- 2017-11-04 14:55:42.890865: I tensorflow/core/common_runtime/gpu/gpu_device.cc:955] Found device 7 with properties:
- name: Tesla K80
- major: 3 minor: 7 memoryClockRate (GHz) 0.8235
- pciBusID 0000:00:1e.0
- Total memory: 11.17GiB
- Free memory: 11.10GiB
- 2017-11-04 14:55:42.899603: I tensorflow/core/common_runtime/gpu/gpu_device.cc:976] DMA: 0 1 2 3 4 5 6 7
- 2017-11-04 14:55:42.899625: I tensorflow/core/common_runtime/gpu/gpu_device.cc:986] 0: Y Y Y Y Y Y Y Y
- 2017-11-04 14:55:42.899636: I tensorflow/core/common_runtime/gpu/gpu_device.cc:986] 1: Y Y Y Y Y Y Y Y
- 2017-11-04 14:55:42.899646: I tensorflow/core/common_runtime/gpu/gpu_device.cc:986] 2: Y Y Y Y Y Y Y Y
- 2017-11-04 14:55:42.899653: I tensorflow/core/common_runtime/gpu/gpu_device.cc:986] 3: Y Y Y Y Y Y Y Y
- 2017-11-04 14:55:42.899659: I tensorflow/core/common_runtime/gpu/gpu_device.cc:986] 4: Y Y Y Y Y Y Y Y
- 2017-11-04 14:55:42.899668: I tensorflow/core/common_runtime/gpu/gpu_device.cc:986] 5: Y Y Y Y Y Y Y Y
- 2017-11-04 14:55:42.899678: I tensorflow/core/common_runtime/gpu/gpu_device.cc:986] 6: Y Y Y Y Y Y Y Y
- 2017-11-04 14:55:42.899685: I tensorflow/core/common_runtime/gpu/gpu_device.cc:986] 7: Y Y Y Y Y Y Y Y
- 2017-11-04 14:55:42.899710: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1045] Creating TensorFlow device (/gpu:0) -> (device: 0, name: Tesla K80, pci bus id: 0000:00:17.0)
- 2017-11-04 14:55:42.899722: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1045] Creating TensorFlow device (/gpu:1) -> (device: 1, name: Tesla K80, pci bus id: 0000:00:18.0)
- 2017-11-04 14:55:42.899727: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1045] Creating TensorFlow device (/gpu:2) -> (device: 2, name: Tesla K80, pci bus id: 0000:00:19.0)
- 2017-11-04 14:55:42.899734: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1045] Creating TensorFlow device (/gpu:3) -> (device: 3, name: Tesla K80, pci bus id: 0000:00:1a.0)
- 2017-11-04 14:55:42.899739: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1045] Creating TensorFlow device (/gpu:4) -> (device: 4, name: Tesla K80, pci bus id: 0000:00:1b.0)
- 2017-11-04 14:55:42.899748: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1045] Creating TensorFlow device (/gpu:5) -> (device: 5, name: Tesla K80, pci bus id: 0000:00:1c.0)
- 2017-11-04 14:55:42.899753: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1045] Creating TensorFlow device (/gpu:6) -> (device: 6, name: Tesla K80, pci bus id: 0000:00:1d.0)
- 2017-11-04 14:55:42.899762: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1045] Creating TensorFlow device (/gpu:7) -> (device: 7, name: Tesla K80, pci bus id: 0000:00:1e.0)
- >>> from keras.utils.training_utils import multi_gpu_model
- >>>
- >>> m2 = multi_gpu_model(m, 8)
- swig/python detected a memory leak of type 'int64_t *', no destructor found.
- swig/python detected a memory leak of type 'int64_t *', no destructor found.
- swig/python detected a memory leak of type 'int64_t *', no destructor found.
- swig/python detected a memory leak of type 'int64_t *', no destructor found.
- swig/python detected a memory leak of type 'int64_t *', no destructor found.
- swig/python detected a memory leak of type 'int64_t *', no destructor found.
- swig/python detected a memory leak of type 'int64_t *', no destructor found.
- swig/python detected a memory leak of type 'int64_t *', no destructor found.
- swig/python detected a memory leak of type 'int64_t *', no destructor found.
- >>> m2.summary()
- __________________________________________________________________________________________________
- Layer (type) Output Shape Param # Connected to
- ==================================================================================================
- input_1 (InputLayer) (None, 224, 224, 3) 0
- __________________________________________________________________________________________________
- lambda_1 (Lambda) (None, 224, 224, 3) 0 input_1[0][0]
- __________________________________________________________________________________________________
- lambda_2 (Lambda) (None, 224, 224, 3) 0 input_1[0][0]
- __________________________________________________________________________________________________
- lambda_3 (Lambda) (None, 224, 224, 3) 0 input_1[0][0]
- __________________________________________________________________________________________________
- lambda_4 (Lambda) (None, 224, 224, 3) 0 input_1[0][0]
- __________________________________________________________________________________________________
- lambda_5 (Lambda) (None, 224, 224, 3) 0 input_1[0][0]
- __________________________________________________________________________________________________
- lambda_6 (Lambda) (None, 224, 224, 3) 0 input_1[0][0]
- __________________________________________________________________________________________________
- lambda_7 (Lambda) (None, 224, 224, 3) 0 input_1[0][0]
- __________________________________________________________________________________________________
- lambda_8 (Lambda) (None, 224, 224, 3) 0 input_1[0][0]
- __________________________________________________________________________________________________
- resnet50 (Model) (None, 1000) 25636712 lambda_1[0][0]
- lambda_2[0][0]
- lambda_3[0][0]
- lambda_4[0][0]
- lambda_5[0][0]
- lambda_6[0][0]
- lambda_7[0][0]
- lambda_8[0][0]
- __________________________________________________________________________________________________
- concatenate_1 (Concatenate) (None, 1000) 0 resnet50[1][0]
- resnet50[2][0]
- resnet50[3][0]
- resnet50[4][0]
- resnet50[5][0]
- resnet50[6][0]
- resnet50[7][0]
- resnet50[8][0]
- ==================================================================================================
- Total params: 25,636,712
- Trainable params: 25,583,592
- Non-trainable params: 53,120
- __________________________________________________________________________________________________
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement