Fix numpy issue in vis.py

This commit is contained in:
Jensun Ravichandran 2021-05-20 17:33:19 +02:00
parent 16dc3cf4eb
commit de63eaf15a

View File

@ -42,7 +42,7 @@ class Vis2DAbstract(pl.Callback):
x, y = data
if flatten_data:
x = x.view(len(data), -1)
x = x.reshape(len(x), -1)
self.x_train = x
self.y_train = y