magic/trivial.py

15 lines
326 B
Python
Raw Normal View History

2024-06-17 20:55:11 +02:00
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}")