Skip to content

Conversation

@ppotapov-aws
Copy link
Collaborator

@ppotapov-aws ppotapov-aws commented Jan 22, 2026

Don't know if it is all it takes 🤷

with FakeTensorMode() as fake_mode:
      fake_a = fake_mode.from_tensor(torch.empty(128, 1, 32, 64, 1, dtype=torch.uint8))
      rv = K.specialize(
        (fake_a,), {"opt": None, "fo": 2}, 2, 1, None, flags
      )
      rv = K.trace(f'./{fname}.out.klr', 'cbor', None)
      rv = json.loads(rv)

@ppotapov-aws ppotapov-aws merged commit c6b7c52 into main Jan 23, 2026
6 checks passed
@ppotapov-aws ppotapov-aws deleted the ppotapov/NKI-421/gather_torch_fake_tensors branch January 23, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants