Skip to content
This repository was archived by the owner on Aug 30, 2018. It is now read-only.
This repository was archived by the owner on Aug 30, 2018. It is now read-only.

OnnxAttributes type conversion is error prone #35

@ezyang

Description

@ezyang

The OnnxAttributes helper class that I wrote suffers the problem that it uses exactly the type of the attribute value to decide whether or not to write out f or i attribute protos. I don't know if Caffe2 will accept an i anywhere a f is expected, but if it does not, then this leads to the very real danger that someone writes a literal like 1 or 2, expecting it to "just work", but actually the underlying attribute required floats.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions