I have a python script but there is a function inside that kills my process:
def my_function(data):
data = np.array(data).flatten()
reshaped_data = np.reshape(data, (len(data), 1))
return reshaped_data / reshaped_data.transpose()
Any ideas how to make it efficient?
Technical Details:
- Number of logical CPUs: 64
- Number of physical CPUs: 32
- Current CPU frequency: 3103.227812499999 Mhz
- Max CPU frequency: 0.0 Mhz
- Total memory: 249.02 GB
- Available memory: 215.45 GB