All Questions
3 questions
1
vote
0
answers
112
views
`torch.conj_physical` faster than `torch.conj` if full output is used?
conj docs
torch.conj() performs a lazy conjugation, but the actual conjugated tensor can be materialized at any time using torch.resolve_conj()
conj_physical docs
This performs the conjugate ...
0
votes
1
answer
236
views
Efficient lazy slicing in Python [duplicate]
I am looking into optimizing an existing Python module that has a lot of byte-copying code like the following going around:
byte0 = data[0]
do_something_with_rest(data[1:])
And sometimes:
first_bytes ...
3
votes
2
answers
114
views
Why is this lambda function lazier than the for loop version?
Was writing a blog post about some python coding styles and came across something that I found very strange and I was wondering if someone understood what was going on with it. Basically I've got two ...