Commit b65d9ec2 authored by Batchu Venkat Vishal's avatar Batchu Venkat Vishal Committed by Jonathan Hseu
Browse files

Fix value error generated on is_scalar check (#10391)

* Fix value error generated on is_scalar check

`is_scalar = shape is not None and not shape` raises a value error when shape is a scalar, "ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()"

* Update variable_scope.py

* Fix
parent 20669f62
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment