hyperdimensional-computing / torchhd

Torchhd is a Python library for Hyperdimensional Computing and Vector Symbolic Architectures
https://torchhd.readthedocs.io
MIT License
248 stars 25 forks source link

Fix dtype validation error in the Fractional Power Encoding #148

Closed mikeheddes closed 1 year ago

mikeheddes commented 1 year ago

Description

The current validation of the provided dtype expects a value to be passed but the default is None. Moreover, for the FHRR VSA model, the dtype used for the weights/phases stored by the FractionalPower embedding are different from the hypervector returned by the embedding, i.e., complex64 means that the weights are float32.

This resolves issue #147.

Checklist