Skip to content

ndarray is not C-contiguous #65

Open
@olegranmo

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions