(name)
| 150 | |
| 151 | |
| 152 | def fetch_any_blob(name): |
| 153 | bb = None |
| 154 | try: |
| 155 | bb = workspace.FetchBlob(name) |
| 156 | except TypeError: |
| 157 | bb = workspace.FetchInt8Blob(name) |
| 158 | except Exception as e: |
| 159 | logger.error("Get blob {} error: {}".format(name, e)) |
| 160 | |
| 161 | return bb |
| 162 | |
| 163 | |
| 164 | # ==== torch/utils_caffe2/protobuf.py ========================================== |
no outgoing calls
no test coverage detected