Skip to content

Commit df00139

Browse files
brillstf-model-analysis-team
authored and
tf-model-analysis-team
committed
Catch ImportError when importing the tfx_bsl C++ extension.
PiperOrigin-RevId: 292563708
1 parent 81bad33 commit df00139

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tensorflow_model_analysis/extractors/input_extractor.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,8 @@
2525
from tensorflow_model_analysis import constants
2626
from tensorflow_model_analysis import types
2727
from tensorflow_model_analysis.extractors import extractor
28-
# pylint: disable=bad-inline-option,broad-except,g-import-not-at-top
29-
try:
30-
# TODO(b/144161598): Workaround for cloud tests that fail to load TFX_BSL
31-
from tfx_bsl.coders import example_coder
32-
except Exception:
33-
pass
28+
from tfx_bsl.coders import example_coder
3429
from typing import Any, Dict, List, Optional, Text, Tuple, Union
35-
# pylint: enable=bad-inline-option,broad-except,g-import-not-at-top
3630

3731
INPUT_EXTRACTOR_STAGE_NAME = 'ExtractInputs'
3832

0 commit comments

Comments
 (0)