np_resource = np.dtype([("resource", np.ubyte, 1)])
Traceback (most recent call last):
File "model.py", line 139, in
train()
File "model.py", line 56, in train
train_label = dense_to_one_hot(train_label,FLAGS.num_classes)
File "model.py", line 49, in dense_to_one_hot
labels_one_hot.flat[index_offset + labels_dense.ravel()] = 1
IndexError: index 4833 is out of bounds for size 4800
Getting below index error on model.py.
np_resource = np.dtype([("resource", np.ubyte, 1)]) Traceback (most recent call last): File "model.py", line 139, in
train()
File "model.py", line 56, in train
train_label = dense_to_one_hot(train_label,FLAGS.num_classes)
File "model.py", line 49, in dense_to_one_hot
labels_one_hot.flat[index_offset + labels_dense.ravel()] = 1
IndexError: index 4833 is out of bounds for size 4800
Dependency