| 73 | |
| 74 | |
| 75 | class MismatchLogger(object): |
| 76 | def __init__(self, exists, nonexists): |
| 77 | self._exists = exists |
| 78 | self._nonexists = nonexists |
| 79 | self._names = [] |
| 80 | |
| 81 | def add(self, name): |
| 82 | self._names.append(get_op_tensor_name(name)[0]) |
| 83 | |
| 84 | def log(self): |
| 85 | if len(self._names): |
| 86 | logger.warn("The following variables are in the {}, but not found in the {}: {}".format( |
| 87 | self._exists, self._nonexists, ', '.join(self._names))) |
| 88 | |
| 89 | |
| 90 | class SaverRestore(SessionInit): |
no outgoing calls
no test coverage detected