Xilinx / finn-base

Open Source Compiler Framework using ONNX as Frontend and IR
https://finn-base.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
29 stars 17 forks source link

Modified set_nodeattr to allow using it on repeated fields #18

Closed mmrahorovic closed 3 years ago

mmrahorovic commented 3 years ago

[base]: changed how the floats, ints, strings, tensors, graphs and sparse_tensors field of AttributeProto is set.

maltanar commented 3 years ago

I've modified this a little to exclude the attribute types that we don't have tests or use cases for yet (["strings", "tensors", "graphs", "sparse_tensors"]) since these are likely to need custom attribute getters as well. These can be enabled once appropriate tests and getters are added.