Skip to content

Conversation

apaszke
Copy link
Contributor

@apaszke apaszke commented Jan 16, 2017

  • Removed cmin, cmax and cinv (functionality of cmin, cmax split between max/min and clamp; cinv renamed to reciprocal)
  • Merged nn.Container code into nn.Module (nn.Container will now start showing deprecation warnings)

@@ -3,203 +3,28 @@
import torch
from .module import Module

def _addindent(s_, numSpaces):

This comment was marked as off-topic.

This comment was marked as off-topic.

self._modules = OrderedDict()
# DeprecationWarning is ignored by default <sigh>
warnings.warn("nn.Container is deprecated. All of it's functionality "
"is not implemented in nn.Module. Subclass that instead.")

This comment was marked as off-topic.

else:
return CminConstant(other)(self)
def reciprocal(self):
return Cinv()(self)

This comment was marked as off-topic.

This comment was marked as off-topic.

@soumith soumith merged commit d6fa3b3 into master Jan 17, 2017
@apaszke apaszke deleted the fixes_v2 branch January 17, 2017 00:10
soumith added a commit that referenced this pull request Apr 11, 2017
mrshenli pushed a commit to mrshenli/pytorch that referenced this pull request Apr 11, 2020
Update nn_tutorial to reflect UI change
Krovatkin pushed a commit to Krovatkin/pytorch that referenced this pull request Nov 4, 2020
…ytorch#455)

Generated kernels are printed even with dynamic allocations. An error is
thrown before compilation.
KyleCZH pushed a commit to KyleCZH/pytorch that referenced this pull request Sep 20, 2021
* Extract MKL version and build number into env vars

* Use common/install_mkl.sh to install MKL

* Rectify duplicate "Install MKL" step from libtorch/ubuntu16.04/Dockerfile
eellison added a commit to eellison/pytorch that referenced this pull request Jun 29, 2022
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.

4 participants