Types

packnet_sfm.utils.types.is_cfg(data)[source]

Checks if data is a configuration node

packnet_sfm.utils.types.is_dict(data)[source]

Checks if data is a dictionary.

packnet_sfm.utils.types.is_int(data)[source]

Checks if data is an integer.

packnet_sfm.utils.types.is_list(data)[source]

Checks if data is a list.

packnet_sfm.utils.types.is_numpy(data)[source]

Checks if data is a numpy array.

packnet_sfm.utils.types.is_seq(data)[source]

Checks if data is a list or tuple.

packnet_sfm.utils.types.is_str(data)[source]

Checks if data is a string.

packnet_sfm.utils.types.is_tensor(data)[source]

Checks if data is a torch tensor.

packnet_sfm.utils.types.is_tuple(data)[source]

Checks if data is a tuple.