Skip to content

cherry pick #9500 and #9590 into 0.4.1#9599

Merged
ssnl merged 2 commits intopytorch:v0.4.1from
ssnl:im2col
Jul 19, 2018
Merged

cherry pick #9500 and #9590 into 0.4.1#9599
ssnl merged 2 commits intopytorch:v0.4.1from
ssnl:im2col

Conversation

@ssnl
Copy link
Collaborator

@ssnl ssnl commented Jul 19, 2018

cherry pick #9500 and #9590 into 0.4.1

ssnl added 2 commits July 18, 2018 10:40
Summary:
Things like `float('inf')` are actually quite expensive.
```py
In [1]: import math

In [2]: %timeit -n 200 math.inf
49.3 ns ± 1.42 ns per loop (mean ± std. dev. of 7 runs, 200 loops each)

In [3]: %timeit -n 200 float('inf')
194 ns ± 39.1 ns per loop (mean ± std. dev. of 7 runs, 200 loops each)
```
Pull Request resolved: pytorch#9500

Reviewed By: soumith

Differential Revision: D8876229

Pulled By: SsnL

fbshipit-source-id: 78602b76bb53d5588910b58270930c0bd413d2d7
@ssnl ssnl merged commit 3684cc4 into pytorch:v0.4.1 Jul 19, 2018
@ssnl ssnl deleted the im2col branch July 19, 2018 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants