Skip to content

Refactor weights, biases and other embedded tensors to use a Constant Layer #39

@Gaudeval

Description

@Gaudeval

Constants result in tensors hidden or nested inside the layer definition, with special cases to capture them during code generation. Instead we could introduce a Constant layer producing a single output tensor. The Constant Layer could be plugged as the producer for all those weights, biases, and others.

This should remove special cases such as MatMul depending on an enum to know if it has one or two inputs, and if the single input is the left or right operand.

During ONNX imports, all initializers should produce a Constant Layer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions