Skip to content

Commit 32b1a55

Browse files
authored
[GDN] Fix DeprecationWarning
1 parent dc29ec5 commit 32b1a55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fla/ops/gated_delta_rule/chunk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def chunk_gated_delta_rule(
301301
assert len(beta.shape) == 3, "beta must be of shape [B, T, H] if head_first=False, or [B, H, T] otherwise."
302302

303303
if head_first:
304-
raise DeprecationWarning(
304+
warnings.warn(
305305
"head_first is deprecated and will be removed in a future version. "
306306
"Please use head_first=False for now instead."
307307
)

0 commit comments

Comments
 (0)