Fix null ptr dereference in squeeze cpu implementation.

Squeeze, when used on a single-value tensor with 1s in
each dimension, will result in zero-sized tensor without dimensions.

This change fixes it, by making its output a tensor of size [1].

Bug: 155238914
Test: squeeze_b155238914.mod.py run on coral.
Change-Id: Ia5bf655c647084d9fa094ae8a2048917a8237b81
Merged-In: Ia5bf655c647084d9fa094ae8a2048917a8237b81
(cherry picked from commit 65c39cb47134728db1f72231b34a9472081f9840)
3 files changed