Skip to content

[src] Compute linalg beamforming ops in double#482

Merged
mpariente merged 9 commits intomasterfrom
double_solve
Apr 19, 2021
Merged

[src] Compute linalg beamforming ops in double#482
mpariente merged 9 commits intomasterfrom
double_solve

Conversation

@mpariente
Copy link
Collaborator

As @popcornell pointed out, numpy automatically casts to double for solving, and torch doesn't.

This PR makes sure that all the solve, cholesky and inverse ops are done in double (float or complex).

@mpariente
Copy link
Collaborator Author

Another solution would have been to write a decorator that automatically casts before and after. It would have been simpler to read, once the decorator would be implemented.
My first attempt looked like a lot of overhead.
We might revert to this if we have more and more ops like that, but for now 3 ops by hand is fine.

@mpariente mpariente merged commit 228d8bb into master Apr 19, 2021
@mpariente mpariente deleted the double_solve branch April 19, 2021 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant