Skip to content

Commit f522583

Browse files
committed
Merge commit for internal changes
2 parents 3660d33 + 544ec1c commit f522583

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# This version number should always be that of the *next* (unreleased) version.
2828
# Immediately after uploading a package to PyPI, you should increment the
2929
# version number and push to gitHub.
30-
__version__ = "2.1.0"
30+
__version__ = "2.1.1"
3131

3232
if "--release" in sys.argv:
3333
sys.argv.remove("--release")

tensorflow_lattice/python/lattice_lib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2482,7 +2482,7 @@ def verify_hyperparameters(lattice_sizes,
24822482
(weights_shape, lattice_sizes, expected_num_weights))
24832483

24842484
if input_shape is not None:
2485-
if not isinstance(input_shape, list):
2485+
if isinstance(input_shape[-1], int):
24862486
if input_shape[-1] != len(lattice_sizes):
24872487
raise ValueError("Last dimension of input shape must have same number "
24882488
"of elements as 'lattice_sizes'. 'input shape': %s, "

0 commit comments

Comments
 (0)