Created by: guru4elephant
make fetch variable's shape consistent with output of inference. support numpy array input for predict interface