Skip to content

Eager functions in API appear in conflict with lazy implementation  #642

Closed
@cbourjau

Description

@cbourjau

We are looking at adapting this API for a lazy array library built on top of ONNX (and Spox). It seems to be an excellent fit for most parts. However, certain functions in the specification appear to be in conflict with a lazy implementation. One instance is __bool__ which is defined as:

array.__bool__() → bool

The output is documented as "a Python bool object representing the single element of the array". This is problematic for lazy implementations since the value is not available at this point. How should a standard compliant lazy implementation deal with this apparent conflict?

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: Lazy/GraphLazy and graph-based array implementations.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions