tmu icon indicating copy to clipboard operation
tmu copied to clipboard

ndarray is not C-contiguous

Open olegranmo opened this issue 5 months ago • 0 comments

Dev gives the following error when running LogicalTransformerDemo.py

Traceback (most recent call last): File "/Users/oleg/Dropbox/Research/Implementations/LogicalTransformer/./LogicalTransformerDemo.py", line 73, in Y_test_predicted_token, Y_test_scores_token = tms[i][j].predict(X_test_token, return_class_sums=True) File "/Users/oleg/Dropbox/Research/Implementations/dev/tmu/tmu/models/classification/vanilla_classifier.py", line 425, in predict encoded_X_test = self.test_encoder_cache.get_encoded_data( File "/Users/oleg/Dropbox/Research/Implementations/dev/tmu/tmu/util/encoded_data_cache.py", line 18, in get_encoded_data current_hash = self.compute_hash(data) File "/Users/oleg/Dropbox/Research/Implementations/dev/tmu/tmu/util/encoded_data_cache.py", line 14, in compute_hash return xxhash.xxh3_64_hexdigest(arr) ValueError: ndarray is not C-contiguous

olegranmo avatar Jan 26 '24 21:01 olegranmo