Skip to content

Commit

Permalink
lint fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
CatB1t committed Feb 8, 2023
1 parent 887d437 commit 541f9a1
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions ivy/stateful/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,13 +512,13 @@ def save_weights(self, weights_path, /):
self.v.cont_to_disk_as_hdf5(weights_path)

def build(
self,
*args,
from_call=False,
device=None,
dtype=None,
dynamic_backend=None,
**kwargs
self,
*args,
from_call=False,
device=None,
dtype=None,
dynamic_backend=None,
**kwargs,
):
"""
Build the internal layers and variables for this module.
Expand Down Expand Up @@ -556,12 +556,11 @@ def build(
# build variables based on locally built layers, if v not passed in constructor
v_from_constructor = self._v_in
created = Container(
self._create_variables(device=self._dev, dtype=dtype),
dynamic_backend=False
self._create_variables(device=self._dev, dtype=dtype), dynamic_backend=False
)
created_n_found = Container(
dict(**self._find_variables(obj=self), **created),
dynamic_backend=dynamic_backend
dynamic_backend=dynamic_backend,
)
if ivy.exists(v_from_constructor):
if self._with_partial_v:
Expand Down

0 comments on commit 541f9a1

Please sign in to comment.