Skip to content

Commit

Permalink
remove apply overloads
Browse files Browse the repository at this point in the history
  • Loading branch information
cgarciae committed Aug 9, 2023
1 parent 36e5141 commit 2dbb44a
Showing 1 changed file with 0 additions and 45 deletions.
45 changes: 0 additions & 45 deletions flax/linen/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -1666,51 +1666,6 @@ def __call__(self, x):
module = self.clone()
return module, variables

@overload
def apply(
self,
variables: VariableDict,
*args,
rngs: Optional[RNGSequences] = None,
method: Union[Callable[..., Any], str, None] = None,
mutable: Literal[False],
capture_intermediates: Union[
bool, Callable[['Module', str], bool]
] = False,
**kwargs,
) -> Any:
...

@overload
def apply(
self,
variables: VariableDict,
*args,
rngs: Optional[RNGSequences] = None,
method: Union[Callable[..., Any], str, None] = None,
mutable: CollectionFilter,
capture_intermediates: Union[
bool, Callable[['Module', str], bool]
] = False,
**kwargs,
) -> Tuple[Any, Union[FrozenVariableDict, Dict[str, Any]]]:
...

@overload
def apply(
self,
variables: VariableDict,
*args,
rngs: Optional[RNGSequences] = None,
method: Union[Callable[..., Any], str, None] = None,
mutable: CollectionFilter = False,
capture_intermediates: Union[
bool, Callable[['Module', str], bool]
] = False,
**kwargs,
) -> Union[Any, Tuple[Any, Union[FrozenVariableDict, Dict[str, Any]]]]:
...

@traceback_util.api_boundary
def apply(
self,
Expand Down

0 comments on commit 2dbb44a

Please sign in to comment.