hls4ml.backends package

Subpackages

Submodules

hls4ml.backends.backend module

class hls4ml.backends.backend.Backend(name)

Bases: object

create_initial_config(**kwargs)
create_layer_class(layer_class)
get_available_flows()
get_default_flow()
register_pass(name, opt_cls)
register_source(file_name, source, destination_dir='nnet_utils')
register_template(template_cls)
hls4ml.backends.backend.get_available_backends()
hls4ml.backends.backend.get_backend(name)
hls4ml.backends.backend.register_backend(name, backend_cls)

hls4ml.backends.template module

class hls4ml.backends.template.FunctionCallTemplate(layer_class, include_header=None)

Bases: hls4ml.backends.template.Template

transform(model, node)
class hls4ml.backends.template.LayerConfigTemplate(layer_class)

Bases: hls4ml.backends.template.Template

class hls4ml.backends.template.Template(name, layer_class, attribute_name)

Bases: hls4ml.model.optimizer.optimizer.OptimizerPass

format(node)
get_name()
match(node)
transform(model, node)

Module contents