nip.utils.maths.dict_dot_product# nip.utils.maths.dict_dot_product(dict_1: dict[Tensor], dict_2: dict[Tensor]) → float[source]# Calculate the dot product between two dictionaries of tensors. Parameters: dict_1 (dict[Tensor]) – The first dictionary. dict_2 (dict[Tensor]) – The second dictionary. Returns: dot_product (float) – The dot product of the two dictionaries. Raises: ValueError: – If the dictionaries do not have the same keys.