Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 8e112e9

Browse files
authored
Merge pull request #120 from facebookresearch/show-exception
Log exception rather than just passing
2 parents 8c345a5 + 4b412d9 commit 8e112e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tensor_comprehensions/tc_unit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ def tune_and_store(self, tc_name, inputs, mapping_options, cache_file=""):
204204
try:
205205
best_options = self.autotuner.tune(cache_file, tc_name, inputs, options, [options])
206206
return best_options
207-
except RuntimeError:
207+
except Exception as e:
208+
logger.error('Raised exception: {}'.format(e))
208209
return options
209210

210211
def autotune(self, *inputs, **kwargs):

0 commit comments

Comments
 (0)