Skip to content

Remove tf_to_hls #795

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions hls4ml/converters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,6 @@
warnings.warn("WARNING: ONNX converter is not enabled!", stacklevel=1)
__onnx_enabled__ = False

try:
from hls4ml.converters.tf_to_hls import tf_to_hls

__tensorflow_enabled__ = True
except ImportError:
warnings.warn("WARNING: Tensorflow converter is not enabled!", stacklevel=1)
__tensorflow_enabled__ = False

# ----------Layer handling register----------#
model_types = ['keras', 'pytorch', 'onnx']

Expand Down Expand Up @@ -139,11 +131,6 @@ def convert_from_config(config):
model = pytorch_to_hls(yamlConfig)
else:
raise Exception("PyTorch not found. Please install PyTorch.")
elif 'TensorFlowModel' in yamlConfig:
if __tensorflow_enabled__:
model = tf_to_hls(yamlConfig)
else:
raise Exception("TensorFlow not found. Please install TensorFlow.")
else:
model = keras_to_hls(yamlConfig)

Expand Down
Loading