Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit 019b2d9

Browse files
committed
Kill make_functional deprecation warning
1 parent 0bc323f commit 019b2d9

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

functorch/_src/make_functional.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,6 @@ def compute_loss(params, x, t):
273273
grad_weights = grad(compute_loss)(params, x, t)
274274
```
275275
"""
276-
warnings.warn('If this is your first time using make_functional, please '
277-
'ignore this warning. Otherwise, we recently made a '
278-
'backwards incompatible change to make_functional: '
279-
'please try make_functional_deprecated_v1 if you want the '
280-
'previous behavior.', stacklevel=2)
281276
buffers = list(model.buffers())
282277
if len(buffers) > 0:
283278
raise RuntimeError('make_functional(model): `model` has buffers. Please use '
@@ -322,11 +317,6 @@ def compute_loss(params, buffers, x, t):
322317
grad_weights = grad(compute_loss)(params, buffers, x, t)
323318
```
324319
"""
325-
warnings.warn('If this is your first time using make_functional_with_buffers, please '
326-
'ignore this warning. Otherwise, we recently made a '
327-
'backwards incompatible change to make_functional_with_buffers: '
328-
'please try make_functional_with_buffers_deprecated_v1 if you want the '
329-
'previous behavior.', stacklevel=2)
330320
return FunctionalModuleWithBuffers._create_from(model)
331321

332322

0 commit comments

Comments
 (0)