colab대신에 vscode를 사용하고 있습니다.
.ipynb 대신에 .py으로 바꾸어서 coding 연습을 하고 있습니다.
404 페이지의 !ls -al *.h5의 코딩은 .py로 변경하면 get_ipynb().system('ls -al *.5')로 바뀌라고 나오는데 그대로 따라서 코딩을 하면 다음과 같은 에러가 나옵니다.
2021-02-21 16:08:08.899134: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1096] Device interconnect StreamExecutor with strength 1 edge matrix:
2021-02-21 16:08:08.899434: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] 0
2021-02-21 16:08:08.899657: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] 0: N
2021-02-21 16:08:08.900102: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1241] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 4842 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1060 6GB, pci bus id: 0000:01:00.0, compute capability: 6.1)
2021-02-21 16:08:10.148545: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cublas64_10.dll
Traceback (most recent call last):
File "c:/vsc/parkh/hg-mldl/7_3_ex.py", line 93, in <module>
get_ipython().system('ls -al *.h5')
NameError: name 'get_ipython' is not defined
그래서 googling을 해서 from IPYthon import get_ipython
get_ipython().system('ls -al *.h5')이라고 코딩하면
다음과 같은 에러가 발생합니다.
2021-02-21 16:21:07.429165: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cublas64_10.dll
Traceback (most recent call last):
File "c:/vsc/parkh/hg-mldl/7_3_ex.py", line 94, in <module>
get_ipython().system('ls -al *.h5')
AttributeError: 'NoneType' object has no attribute 'system'
어떻게 해야 하나요?