Skip to content
Open
Changes from all 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
2 changes: 1 addition & 1 deletion qwix/_src/core/dot_general_qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def _compute_gradient_for_operand(g: jax.Array, *, for_dlhs: bool):

if g_qtype and numerics.should_quantize(g.dtype):
if isinstance(y, qarray.QArray) and not any(
v > 1 for v in qarray.get_tiled_axes(y).values()
tile_size > 1 for tile_size in qarray.get_tiled_axes(y).values()
):
# Apply the scale of y to g, this trick avoids requantizing y because
# the y from fwd pass has different channelwise_axes.
Expand Down