Skip to content

Commit

Permalink
Add missing call
Browse files Browse the repository at this point in the history
  • Loading branch information
Ofir Gordon authored and Ofir Gordon committed Dec 3, 2023
1 parent 3152843 commit 0f085be
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions model_compression_toolkit/core/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
from model_compression_toolkit.core.common.visualization.final_config_visualizer import \
WeightsFinalBitwidthConfigVisualizer, \
ActivationFinalBitwidthConfigVisualizer
from model_compression_toolkit.core.common.visualization.tensorboard_writer import TensorboardWriter
from model_compression_toolkit.core.common.visualization.tensorboard_writer import TensorboardWriter, \
finalize_bitwidth_in_tb


def core_runner(in_model: Any,
Expand Down Expand Up @@ -141,14 +142,7 @@ def core_runner(in_model: Any,
f'Final activation bit-width configuration: {[node_b[1] for node_b in activation_conf_nodes_bitwidth]}')

if tb_w is not None:
if len(weights_conf_nodes_bitwidth) > 0:
visual = WeightsFinalBitwidthConfigVisualizer(weights_conf_nodes_bitwidth)
figure = visual.plot_config_bitwidth()
tb_w.add_figure(figure, f'Weights final bit-width config')
if len(activation_conf_nodes_bitwidth) > 0:
visual = ActivationFinalBitwidthConfigVisualizer(activation_conf_nodes_bitwidth)
figure = visual.plot_config_bitwidth()
tb_w.add_figure(figure, f'Activation final bit-width config')
finalize_bitwidth_in_tb(tb_w, weights_conf_nodes_bitwidth, activation_conf_nodes_bitwidth)

return tg, bit_widths_config, hessian_info_service

Expand Down

0 comments on commit 0f085be

Please sign in to comment.