Skip to content

Commit 1177011

Browse files
committed
doc leftover
1 parent 96aee42 commit 1177011

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ config = hls4ml.utils.fetch_example_model('KERAS_3layer.json')
4545
print(config)
4646

4747
# Convert it to a hls project
48-
hls_model = hls4ml.converters.keras_to_hls(config)
48+
hls_model = hls4ml.converters.keras_v2_to_hls(config)
4949

5050
# Print full list of example models if you want to explore more
5151
hls4ml.utils.fetch_example_list()

docs/advanced/profiling.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You will need to initialise these objects by using a trained model, loading a mo
1414
.. code-block:: python
1515
1616
from hls4ml.model.profiling import numerical
17-
from hls4ml.converters import keras_to_hls
17+
from hls4ml.converters import keras_v2_to_hls
1818
import matplotlib.pyplot as plt
1919
import yaml
2020
@@ -27,7 +27,7 @@ You will need to initialise these objects by using a trained model, loading a mo
2727
with open("keras-config.yml", 'r') as ymlfile:
2828
config = yaml.load(ymlfile)
2929
30-
hls_model = keras_to_hls(config)
30+
hls_model = keras_v2_to_hls(config)
3131
3232
# produce 4 plots
3333
plots = numerical(model=model, hls_model = hls_model, X=X)

0 commit comments

Comments
 (0)