Quantcast
Channel: How can I cast a tensor to the complex type in Pytorch? - Stack Overflow
Viewing all articles
Browse latest Browse all 3

How can I cast a tensor to the complex type in Pytorch?

$
0
0

I want to do some quantum mechanics calculations with Pytorch, where the quantities are sometimes complex. I would like to know how can I cast an existing real tensor to the complex type.


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>