magic/trivial.py
2024-06-17 20:55:30 +02:00

15 lines
326 B
Python

import magic
magic.hocuspocus(inform_cache_hit=True, inform_cache_miss=True, inform_cache_write=False, verbose=True)
print('hi')
import numpy as np
import torch
print("Running actual code:")
np_array = np.array([1, 2, 3])
print(f"Numpy array: {np_array}")
tensor = torch.tensor([1, 2, 3])
print(f"Torch tensor: {tensor}")