Skip to content

Explicit rules about zero-dimensional tensors #279

Closed
@arogozhnikov

Description

@arogozhnikov

Documentation mentions in several places zero-dimensional tensors, but it's not clear to me if those are required to be supported.

While it sounds very reasonable to assume that e.g. xp.sum(x) returns scalar, some of frameworks don't provide support for zero-dimensional arrays, and fake it with 1-element 1-dimensional arrays. Examples:

  • mxnet fails on creation mx.nd.zeros([]) I know API will be reworked in mxnet 2, but did not check actual support there
  • paddle also lacks zero-dim arrays, it does not seem to be in any priority

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions