Check the existence of file or dir.
(filename)
| 44 | |
| 45 | |
| 46 | def check_existence(filename): |
| 47 | """Check the existence of file or dir.""" |
| 48 | if not os.path.exists(filename): |
| 49 | raise RuntimeError("%s not found. Are you under the TensorFlow source root" |
| 50 | " directory?") |
| 51 | |
| 52 | |
| 53 | def check_all_files(): |