(data)
| 150 | |
| 151 | # Data conversion to perform before being able to use functions |
| 152 | def data_conversion (data): |
| 153 | if isinstance(data, float): |
| 154 | return torch.tensor(np.array(data)) |
| 155 | else: |
| 156 | return torch.tensor(data) |
| 157 | |
| 158 | # Inverse of data conversion |
| 159 | def data_conversion_inv(data): |
no outgoing calls