[functorch] Kill make_functional deprecation warning
diff --git a/functorch/functorch/_src/make_functional.py b/functorch/functorch/_src/make_functional.py
index dc3b42c..f3dc60b 100644
--- a/functorch/functorch/_src/make_functional.py
+++ b/functorch/functorch/_src/make_functional.py
@@ -273,11 +273,6 @@
grad_weights = grad(compute_loss)(params, x, t)
```
"""
- warnings.warn('If this is your first time using make_functional, please '
- 'ignore this warning. Otherwise, we recently made a '
- 'backwards incompatible change to make_functional: '
- 'please try make_functional_deprecated_v1 if you want the '
- 'previous behavior.', stacklevel=2)
buffers = list(model.buffers())
if len(buffers) > 0:
raise RuntimeError('make_functional(model): `model` has buffers. Please use '
@@ -322,11 +317,6 @@
grad_weights = grad(compute_loss)(params, buffers, x, t)
```
"""
- warnings.warn('If this is your first time using make_functional_with_buffers, please '
- 'ignore this warning. Otherwise, we recently made a '
- 'backwards incompatible change to make_functional_with_buffers: '
- 'please try make_functional_with_buffers_deprecated_v1 if you want the '
- 'previous behavior.', stacklevel=2)
return FunctionalModuleWithBuffers._create_from(model)