Skip to content
Snippets Groups Projects
  1. Mar 20, 2019
  2. Mar 19, 2019
  3. Mar 18, 2019
  4. Mar 17, 2019
    • Gregory Chanan's avatar
      Change one_hot from IndexTensor to Tensor. (#18073) · fe22871b
      Gregory Chanan authored
      Summary:
      Pull Request resolved: https://github.com/pytorch/pytorch/pull/18073
      ghimport-source-id: f4dadebafa0423c4c5a0e46c15b38129402d830a
      
      Stack:
      * #18072 properly device_guard IndexTensor and BoolTensor.
      * **#18073 Change one_hot from IndexTensor to Tensor.**
      
      There is no codegen change.
      
      Reviewed By: ezyang
      
      Differential Revision: D14485248
      
      fbshipit-source-id: ee2ba8e5dcbbbaf0214a026c8e7ed4e6712becb0
      fe22871b
    • Gregory Chanan's avatar
      properly device_guard IndexTensor and BoolTensor. (#18072) · 3c2fccc1
      Gregory Chanan authored
      Summary:
      Pull Request resolved: https://github.com/pytorch/pytorch/pull/18072
      ghimport-source-id: 9653731602c72f299e095dd50e3afe6bcc8b01d6
      
      Stack:
      * **#18072 properly device_guard IndexTensor and BoolTensor.**
      * #18073 Change one_hot from IndexTensor to Tensor.
      
      Currently IndexTensor and BoolTensors do not have device_guards applied to them.
      This is bad in the case where the only tensor(s) are IndexTensors or BoolTensors, because no device guard is present.
      
      The only case this currently happens is with one_hot which ends up not mattering because of the way the implementation is written.  But I wanted to make sure we are covered here.
      
      Reviewed By: ezyang
      
      Differential Revision: D14485249
      
      fbshipit-source-id: e57b28086fa1ad2fdd248bb1220e8a2e42da03e1
      3c2fccc1
    • Michael Suo's avatar
      fix corner case for optional aliasing (#18093) · f9ad125e
      Michael Suo authored
      Summary:
      Pull Request resolved: https://github.com/pytorch/pytorch/pull/18093
      ghimport-source-id: 021adc52aa7bfe5fff74531c76a8cd28cab30b2a
      
      Stack:
      * **#18093 [jit] fix corner case for optional aliasing**
      
      Occasionally the compiler can insert constant Nones to make types line
      up. In that case, don't try to make a pointer from the optional type to
      None, since we know statically that None won't be mutated or whatever.
      
      Reviewed By: shannonzhu
      
      Differential Revision: D14493004
      
      fbshipit-source-id: 6564065f39d99ee5af664f3a0fe235892973d9be
      f9ad125e
  5. Mar 16, 2019
Loading