File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -100,13 +100,12 @@ def fn(x, y):
100
100
jvp = fwAD .unpack_dual (out ).tangent
101
101
102
102
######################################################################
103
- # Using Modules stateless API (experimental )
103
+ # Using the functional Module API (beta )
104
104
# --------------------------------------------------------------------
105
105
# Another way to use ``nn.Module`` with forward AD is to utilize
106
- # the stateless API. NB: At the time of writing the stateless API is still
107
- # experimental and may be subject to change.
106
+ # the functional Module API (also known as the stateless Module API).
108
107
109
- from torch .nn . utils . _stateless import functional_call
108
+ from torch .func import functional_call
110
109
111
110
# We need a fresh module because the functional call requires the
112
111
# the model to have parameters registered.
You can’t perform that action at this time.
0 commit comments