When using ctf.einsum for sparse tensor (tensor sp=1)
n = 11
a1 = ctf.tensor((n,n,n), sp=1)
Sometimes ctf.einsum works well, but sometimes there are different errors generated.
This issue possibly appear only on macOS.
Possible errors:
Checksum error
.python(98705,0x7fff8b2d9380) malloc: *** error for object 0x7f8f0fc17cd0: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
Abort trap:
The resulting tensor is incorrect. (e.g. by running the test_sparse.py in test/python)
.F...
======================================================================
FAIL: test_einsum_hadamard (__main__.KnowValues)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_sparse.py", line 32, in test_einsum_hadamard
self.assertTrue(allclose(d2,e2))
AssertionError: False is not true
Stuck by the test_sparse.py in test/python, (need to quit manually)
When using ctf.einsum for sparse tensor (tensor sp=1)
Sometimes ctf.einsum works well, but sometimes there are different errors generated. This issue possibly appear only on macOS. Possible errors: