On Mon, 2020-07-13 at 15:45 +0300, Ram Rachum wrote:
> Thank you Sebastian and Andras for your detailed replies.
>
> Sebastian, your suggestion of adding `item.item()` solved my problem!
> Now
> the for loop is still slower than vectorize, but by a smaller factor,
> and
> that's fast enough for my
Thank you Sebastian and Andras for your detailed replies.
Sebastian, your suggestion of adding `item.item()` solved my problem! Now
the for loop is still slower than vectorize, but by a smaller factor, and
that's fast enough for my demonstration. My problem is solved and I'm very
happy!
I also tr