| commit | 749a17661ca200031bbaa0f724b8c30d7968ad02 | [log] [tgz] |
|---|---|---|
| author | anderspapitto <anderspapitto@gmail.com> | Wed Feb 28 15:44:54 2018 -0800 |
| committer | GitHub <noreply@github.com> | Wed Feb 28 15:44:54 2018 -0800 |
| tree | 5c30d75fcc5560542a029ff30f22d138e848d0db | |
| parent | 5c381bbc57bca9ecd74937c3d5f9653fe24fb8d4 [diff] |
Introduce padding op to mimic pytorch semantics in ONNX export (#2069) In pytorch, after pad_packed_sequence, the "extra" elements (after the ends of the sequences) are reset. In the equivalent Caffe2 graph exported via ONNX, they contained some leftover values, which caused tests to fail. Probably no one depends on these values, but just in case, set them to zero to mimic pytorch semantics.
Caffe2 is a lightweight, modular, and scalable deep learning framework. Building on the original Caffe, Caffe2 is designed with expression, speed, and modularity in mind.
Please use Github issues (https://github.com/caffe2/caffe2/issues) to ask questions, report bugs, and request new features.
Please participate in our survey (https://www.surveymonkey.com/r/caffe2). We will send you information about new releases and special developer events/webinars.
Caffe2 is released under the Apache 2.0 license. See the NOTICE file for details.