Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion thunder/executors/nvfuserex_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1043,12 +1043,13 @@ def full(
fd: FusionDefinition,
lc_to_nv_map: dict,
) -> Any:
nv_shape = getnv(shape, fd, lc_to_nv_map, inline_number=True)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my interpretation, we put inline_number=True simply because we don't want to create fd.define_scalar for each dimension every time.

nv_fill_value = getnv(fill_value, fd, lc_to_nv_map)
nvdtype = lcdtype_to_nvdtype(dtype)

_select_device(fd, device)

return fd.ops.full(shape, nv_fill_value, nvdtype)
return fd.ops.full(nv_shape, nv_fill_value, nvdtype)


register_supported(PrimIDs.FULL, full, _full_check)
Expand Down
Loading