Expands an array of integers in one-hot encoding by adding a new last dimension, leaving zeros everywhere except for the nth dimension, where the original array contained the integer n. The minlength parameter is used to indcate the minimum size of the new dimension
(self, arr, minlength=None)
source not stored for this graph (policy: none)