utils¶
Parallelization utility optimizer.
|
Splits an NDArray into num_slice slices along batch_axis. |
|
Splits an NDArray into len(ctx_list) slices along batch_axis and loads each slice to one context in ctx_list. |
|
Rescales NDArrays so that the sum of their 2-norm is smaller than max_norm. |
|
Download an given URL |
|
Check whether the sha1 hash of the file content matches the expected hash. |