NVIDIA / NVIDIA/tilus

[Bug] Allow use kwargs to specify dtype of to method

Open
#24 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
492
Forks
30
Avg merge
4d 9h
Merged PRs (30d)
2

Description

reg = self.register_tensor(...)
reg_fp32 = reg.to(dtype=float32)

will trigger an error since we use kwargs to specify the dtype.

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 reproducing the register_tensor example and tracing the returned object's to method, focusing on how keyword arguments are handled. Done means reg.to(dtype=float32) accepts the dtype keyword without raising the reported error; the payload names no files or tests to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
compilers
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.