Skip to content

Commit

Permalink
Updated docstring func signature
Browse files Browse the repository at this point in the history
  • Loading branch information
vfdev-5 committed Apr 25, 2022
1 parent aa7da3e commit 1340fb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functorch/_src/make_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def forward(self, params, *args, **kwargs):


def make_functional(model: nn.Module, disable_autograd_tracking: bool = False):
"""make_functional(model) -> func, params
"""make_functional(model, disable_autograd_tracking=False) -> func, params
Given a ``torch.nn.Module``, :func:`make_functional` extracts the state
(params) and returns a functional version of the model, ``func``. This
Expand Down Expand Up @@ -381,7 +381,7 @@ def compute_loss(params, x, t):


def make_functional_with_buffers(model: nn.Module, disable_autograd_tracking: bool = False):
"""make_functional_with_buffers(model) -> func, params, buffers
"""make_functional_with_buffers(model, disable_autograd_tracking=False) -> func, params, buffers
Given a ``torch.nn.Module``, make_functional_with_buffers extracts the
state (params and buffers) and returns a functional version of the model
Expand Down

0 comments on commit 1340fb0

Please sign in to comment.