Contents
Configs
Reference
recursive_apply()
recursive_chunk()
Helper functions for applying functions to containers.
Applies a function recursively to tensors in an item.
item – The item to apply the function to
func – The function to apply (for the tensor)
The same item, with the function applied
Recursively chunk tensors N times.
item – The item to recursively chunk
num_chunks – The number of splits to make
dim – The split dimension
N chunks of items