Skip to content

Add engine.convert Ops to go from primitive/boxed arrays to FinalDimensions #288

Description

@gselzer

Consider Ops like these two. It'd be nice (especially from Python) to be able to write ops.op("create.img").input(new long[] {50, 50}, new FloatType()).apply(). Right now, you won't match the first Op because you have a long[], not a Dimensions. You won't match the second because you provided an element type.

Should be possible to convert a long[] to a FinalDimensions such that we can use conversion to call the first Op.

cc @elevans

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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