Skip to content

ndarray is not C-contiguous #65

Description

@olegranmo

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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