Utility functions for PyTorch.
np_to_torch
Convert numpy arrays to PyTorch tensors.
Args: dict (dict): Dictionary of data in numpy arrays.
torch_to_np
Convert PyTorch tensors to numpy arrays.
Args: value_in (tuple): Tuple of data in PyTorch tensors.