Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tensorflow_lattice/python/configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ def apply_updates(model_config, updates):
configs.apply_updates(model_config, updates)
```

Arguments:
Args:
model_config: The model config object to apply the updates to.
updates: A list of (key, value) pairs with potential config updates. Values
that are not matched to a field in the model config will be ignored.
Expand Down
4 changes: 2 additions & 2 deletions tensorflow_lattice/python/lattice_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -2052,7 +2052,7 @@ def laplacian_regularizer(weights, lattice_sizes, l1=0.0, l2=0.0):
l2[1] * ((w[3] - w[0])^2 + (w[4] - w[1])^2 + (w[5] - w[2])^2)
```

Arguments:
Args:
weights: `Lattice` weights tensor of shape: `(prod(lattice_sizes), units)`.
lattice_sizes: List or tuple of integers which represents lattice sizes.
l1: l1 regularization amount. Either single float or list or tuple of floats
Expand Down Expand Up @@ -2129,7 +2129,7 @@ def torsion_regularizer(weights, lattice_sizes, l1=0.0, l2=0.0):
l2 * ((w[4] + w[0] - w[3] - w[1])^2 + (w[5] + w[1] - w[4] - w[2])^2)
```

Arguments:
Args:
weights: `Lattice` weights tensor of shape: `(prod(lattice_sizes), units)`.
lattice_sizes: List or tuple of integers which represents lattice sizes.
l1: l1 regularization amount. Either single float or list or tuple of floats
Expand Down