Skip to content

Dynamic Generation of Tests #94

@diaconuccalin

Description

@diaconuccalin

Current Status

The tests under DeeployTest, that are also used by the CI pipeline, are currently static, in the sense that they are pre-generated (using external scripts) ONNX and .npz files, containing the model definition, sample inputs, as well as expected outputs. This makes them rather opaque (the ONNX files need to be opened and analyzed separately, as well as the input and output), and thus difficult to debug.

Also, storing these files in their entirety, rather than generating them when they are needed, together with random sample inputs and weights, increases the memory footprint of the repo.

Proposed Solution

Replace the current tests with Python scripts, in which the model is defined, together with a procedure to generate random testing data for it (ONNX with weights randomly initialized, random inputs of predefined dimensions, and the expected output, computed by doing a forward pass).

Alternatives

Keep the current tests as they are, but generate future tests in the manner described in the previous point.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureAddition of new features

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions