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
Loading
Please sign in to comment