79239339

Date: 2024-11-30 10:42:16
Score: 1
Natty:
Report link

Given known batch_size is equal to 2:

batch_size=2
inversed = np.unique(slided.reshape(batch_size, -1)).reshape(batch_size, -1)

Outputting:

[[ 1  2  3  4  5  6  7]
 [ 8  9 10 11 12 13 14]] (2, 7)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Muhammad Ikhwan Perwira