pytorch/torch/nn
Alexander Grund 5b0f400488 Replace list(map(...)) constructs by list comprehensions (#46461)
Summary:
As discussed in https://github.com/pytorch/pytorch/issues/46392 this makes the code more readable and possibly more performant.

It also fixes a bug detected by this where the argument order of `map` was confused: 030a24906e (diff-5bb26bd3a23ee3bb540aeadcc0385df2a4e48de39f87ed9ea76b21990738fe98L1537-R1537)

Fixes https://github.com/pytorch/pytorch/issues/46392

Pull Request resolved: https://github.com/pytorch/pytorch/pull/46461

Reviewed By: ailzhang

Differential Revision: D24367015

Pulled By: ezyang

fbshipit-source-id: d55a67933cc22346b00544c9671f09982ad920e7
2020-10-19 18:42:49 -07:00
..
backends remediation of S205607 2020-07-17 17:19:47 -07:00
intrinsic [quant] Remove unused qconfig argument in qat linear module (#45307) 2020-09-24 22:15:16 -07:00
modules torch.nn.modules.LazyModuleMixin and torch.nn.LazyLinear (Shape Inference II) (#44538) 2020-10-19 13:13:54 -07:00
parallel Replace list(map(...)) constructs by list comprehensions (#46461) 2020-10-19 18:42:49 -07:00
qat [quant] Remove unused qconfig argument in qat linear module (#45307) 2020-09-24 22:15:16 -07:00
quantized [quant][refactor] Alphabetize the entries in the quantized import (#46218) 2020-10-13 11:24:38 -07:00
utils torch.nn.modules.LazyModuleMixin and torch.nn.LazyLinear (Shape Inference II) (#44538) 2020-10-19 13:13:54 -07:00
__init__.py torch.nn.modules.LazyModuleMixin and torch.nn.LazyLinear (Shape Inference II) (#44538) 2020-10-19 13:13:54 -07:00
_reduction.py Fix type annotations and make MyPy run on torch/ (#36584) 2020-04-22 14:17:08 -07:00
common_types.py Move all torch.nn.modules type annotations inline (#38211) 2020-06-11 15:59:57 -07:00
cpp.py
functional.py Expose ChannelShuffle (#46000) 2020-10-08 16:00:01 -07:00
functional.pyi.in [pytorch] Add triplet margin loss with custom distance (#43680) 2020-09-22 11:35:52 -07:00
grad.py Grad input padding support for dilation argument (#33872) 2020-04-09 11:09:55 -07:00
init.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
parameter.py torch.nn.modules.LazyModuleMixin and torch.nn.LazyLinear (Shape Inference II) (#44538) 2020-10-19 13:13:54 -07:00
parameter.pyi torch.nn.modules.LazyModuleMixin and torch.nn.LazyLinear (Shape Inference II) (#44538) 2020-10-19 13:13:54 -07:00