Skip to content

Failures in test_sr.py #1207

Open
Open
@jmitrevs

Description

@jmitrevs

Prerequisites

Please make sure to check off these prerequisites before submitting a bug report.

  • Test that the bug appears on the current version of the master branch. Make sure to include the commit hash of the commit you checked out.
  • Check that the issue hasn't already been reported, by checking the currently open issues.
  • If there are steps to reproduce the problem, make sure to write them down below.
  • If relevant, please include the hls4ml project files, which were created directly before and/or after the bug.

Quick summary

Using the newest container in PR #1200, we get the following errors in test_sr.py that look like version mismatch:

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <hls4ml.backends.symbolic.passes.expr_templates.HLSCodePrinter object at 0x7ff50c72afe0>
expr = cos_lut(x3)
    def _print_not_supported(self, expr):
        if self._settings.get('strict', False):
>           raise PrintMethodNotImplementedError("Unsupported by %s: %s" % (str(type(self)), str(type(expr))) + \
                             "\nSet the printer option 'strict' to False in order to generate partially printed code.")
E           sympy.printing.codeprinter.PrintMethodNotImplementedError: Unsupported by <class 'hls4ml.backends.symbolic.passes.expr_templates.HLSCodePrinter'>: cos_lut
E           Set the printer option 'strict' to False in order to generate partially printed code.
/home/hls4ml/miniforge/envs/hls4ml-testing/lib/python3.10/site-packages/sympy/printing/codeprinter.py:582: PrintMethodNotImplementedError
----------------------------- Captured stdout call -----------------------------

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions