Utility functions¶
Neural network module.
utils.split_data(data, num_slice[, …]) |
Splits an NDArray into num_slice slices along batch_axis. |
utils.split_and_load(data, ctx_list[, …]) |
Splits an NDArray into len(ctx_list) slices along batch_axis and loads each slice to one context in ctx_list. |
utils.clip_global_norm(arrays, max_norm[, …]) |
Rescales NDArrays so that the sum of their 2-norm is smaller than max_norm. |
utils.download(url[, path, overwrite, …]) |
Download an given URL |
utils.check_sha1(filename, sha1_hash) |
Check whether the sha1 hash of the file content matches the expected hash. |