Giter VIP home page Giter VIP logo

onnx-builder's People

Contributors

diyessi avatar

Watchers

 avatar  avatar  avatar

onnx-builder's Issues

Optional output detection

Remove the current kludge for optional outputs and have the builder determine which optional outputs are not being used by gathering names of inputs.

Remove Placeholder

  • Creating an exporter input should return a value that can be used as a placeholder.
  • Exporter could have kwargs of input name and (type, shape)
  • exporter.inputs[name] can be used as a value for that input

Variadic inputs and outputs

Variadic inputs (like Concat.inputs) and outputs (like Split.outputs) need to be accessible.

Need to also investigate the Sequence ops and data type.

Generate opset wrapper files

Rather than dynamically creating wrappers, have a tool that generates updated python files for the wrappers so tools work.
Maybe grab the schema doc for the wrappers.

Node properties

Can we use setattr and getattr to move more of the op classes into Node? For example, if we lists of the input names, attribute names, and output names (including info about which inputs/outputs are optional) Node could handle node_input_values, node_attributes and node_output_values making op definition a matter of providing strings, which we may be able to obtain directly from onnx.

Node/Value reorganization

There is no need for separate classes for each op; Node can have a member that contains node_parameter_descriptors, node_attributes and node_value_descriptors; possibly the onnx schema object for the op could be used directly since the descriptors and attributes are all derived from the schema.
Op constructors would be replaced with factory functions with the same name as the current classes that construct Node with the schema information object and the factory args -- inputs and attributes. These factory functions could be programmatically constructed from the schema.

opset specialization

Does opset downgrading work well enough to export as the current opset and then downgrade with ONNX tools rather than attempting to make ops know how to behave as different opsets?

Exporter -> Graph

Change Exporter to Graph and build the graph as wrappers are called.

Factory returns value

Separate Value and Node implementations so Value 0 is no different from any other Value.

Placeholder changes

  • Use NumPy types
  • Allow shape to be specified at build time like names can be

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.