tensorflow / tensorflow/tensorboard

Update Tensorflow Stub DType

Open
#6,899 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
7.2k
Forks
1.7k
Avg merge
4d 22h
Merged PRs (30d)
1

Description

Environment information (required)

Not related.

Issue description

The tensorflow stub tensorboard/compat/tensorflow_stub/dtypes.py does not include certain types in the latest tensorflow tensorflow/python/framework/dtypes.py. Such as:

  • types_pb2.DT_FLOAT8_E5M2_REF
  • types_pb2.DT_FLOAT8_E4M3FN_REF
  • types_pb2.DT_INT4_REF
  • types_pb2.DT_UINT4_REF

These types exist in tensorboard/compat/proto/types.proto and in tensorflow/python/framework/dtypes.py.

I can open a PR to update the dtypes.py file according to the latest tensorflow code. However, I think it will require adding ml_dtypes as an extra dependency, and I'm not sure if this is the preferred approach.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing tensorboard/compat/tensorflow_stub/dtypes.py with the referenced TensorFlow dtypes.py and the definitions in tensorboard/compat/proto/types.proto. Check how the four reference types are represented and whether ml_dtypes is an appropriate dependency. Done means the stub supports the missing types without an unsuitable dependency choice.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
machine-learning
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.