Skip to content

_quantize_mx() is not handling axes=None proper #36

@teabun

Description

@teabun

It seems _quantize_mx() is not properly handling axes=None.

At

axes = [x + A.ndim if x < 0 else x for x in axes]

    return _quantize_mx(
  File "c:\mx\microxcaling\mx_ops.py", line 194, in _quantize_mx
    axes = [x + A.ndim if x < 0 else x for x in axes]
TypeError: 'NoneType' object is not iterable 

Should not axes be initialized to shape of A if None?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions