Skip to content

Log warning crashes unexpectedly in InferChannelwiseLinearLayer #205

@bwintermann

Description

@bwintermann

A log.warning call fails in convert_to_hw_layers.py:L953 due to TypeError: not all arguments converted during string formatting. This happened on the MobileNet-v1 on the Multi-FPGA branch after I merged the newest dev today. I suspect that log.warning does not like getting DeprecationWarning as a second argument, but it might also have something to do with our custom logging setup. This also happens on dev. Didnt check if it happens on other warning calls yet.

Edit: It indeed disappears when removing the DeprecationWarning

Edit 2: If *args are passed to log.warning(), they will be used for old %-style string string interpolation. No marker is in the message, hence the error. (https://docs.python.org/3/library/logging.html#logging.Logger.debug).

Edit 3: Likely happened because we exchanged warnings.warn with log.warning. This can be fixed together with some other open issues that were originally part of #190

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions