Skip to content

Commit e035850

Browse files
committed
Excise functional_init_*
No one was using it. If anyone was indeed using it, I hope they'll complain loudly.
1 parent 247d518 commit e035850

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

functorch/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
combine_state_for_ensemble,
1818
FunctionalModule,
1919
)
20-
from ._src.make_functional import functional_init, functional_init_with_buffers
2120
from ._src.python_key import wrap_key, PythonTensor, pythonkey_trace, make_fx, nnc_jit, make_nnc
2221
from ._src.nnc_compile import nnc_compile, get_ops
2322
from ._src.eager_compilation import compiled_function, compiled_module, tvm_compile, draw_joint_graph, default_partition, partition_with_recompute_fwd_in_bwd

test/test_eager_transforms.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
from functorch import (
2222
grad, vjp, vmap, jacrev, grad_and_value,
2323
make_functional, make_functional_with_buffers,
24+
)
25+
from functorch._src.make_functional import (
2426
functional_init, functional_init_with_buffers,
2527
)
2628

test/test_vmap.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@
3636
import types
3737

3838
import functorch
39-
from functorch import vmap, functional_init_with_buffers
39+
from functorch import vmap
4040
from functorch._C import reshape_dim_into, reshape_dim_outof
41+
from functorch._src.make_functional import functional_init_with_buffers
4142

4243
FALLBACK_REGEX = 'There is a performance drop'
4344

0 commit comments

Comments
 (0)