jax-ml / jax-ml/ml_dtypes

Custom floats do not respect `np.set_printoptions`

Open
#125 0 comments 1 reaction 1 assignee Claimed by @hawkinsp View on GitHub
bug
Dominant language
C++
Stars
361
Forks
60
Avg merge
18h 41m
Merged PRs (30d)
3

Description

Reported in https://github.com/google/jax/issues/18820

The repr code is here: https://github.com/jax-ml/ml_dtypes/blob/d0519a5391c6936e0e2d8f81e694cd4c6908c7fe/ml_dtypes/_src/custom_float.h#L356-L362

@hawkinsp points out that we could probably make this work by printing via `np.float32` rather than via python `float`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.