ValueError: object __array__ method not producing an array : it occor when I run my code
ValueError: object array method not producing an array and TypeError: Invalid shape (1, 1, 6, 6) for image data When attempting to run the following code, the following errors occur. Code import torch import matplotlib.pyplot as plt data = torch.tensor([[0, 0, 1, 1, 0, 0], [0, 1, 0, 0, 1, 0], [0, 0, 0, 0, […]