tools

This is summary documentation for hippynn.tools module. Click here for full documentation.

Links to Full Documentation:

Misc. helpful functions which are not part of the library organization per se.

Functions

active_directory(dirname[, create])

Context manager for temporarily switching the current working directory.

arrdict_len(array_dictionary)

Return the length of one of the arrays in a dictionary.

device_fallback()

is_equal_state_dict(d1, d2[, raise_where])

Checks if two pytorch state dictionaries are equal.

isiterable(obj)

log_terminal(file, *args, **kwargs)

np_of_torchdefaultdtype()

pad_np_array_to_length_with_zeros(array, length)

param_print(module)

print_lr(optimizer[, print_])

progress_bar(iterable, *args, **kwargs)

Wrap an iterable in a progress bar according to hippynn's current progress bar settings.

recursive_param_count(state_dict[, n])

unsqueeze_multiple(tensor, dims)

Adds unsqueezing dimensions dimensions :param tensor: :param dims: :return:

Classes

TeedFileOutput(*streams)