python_utils.zeropad_end#
Back to Module page
Summary#
pad arr axis=-1 with zeros at (right/back) end to length pad_to_N if arr.shape[-1] < pad_to_N, raise ValueError
Signature#
def zeropad_end(arr, pad_to_N)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
|||
|
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
Docstring#
pad arr axis=-1 with zeros at (right/back) end to length pad_to_N
if arr.shape[-1] < pad_to_N, raise ValueError