hls4ml.backends.vivado_accelerator.passes package

Submodules

hls4ml.backends.vivado_accelerator.passes.fifo_depth_optimization module

class hls4ml.backends.vivado_accelerator.passes.fifo_depth_optimization.FifoDepthOptimization

Bases: ConfigurableOptimizerPass, ModelOptimizerPass

transform(model)

Transformation to apply if matching was successful.

Transform should return a boolean value indicating if the model graph was altered (by adding/removing nodes).

Parameters:
  • model (ModelGraph) – Model to optimize

  • node (Layer) – The matched node in the model graph.

Module contents