commit | e2bd3cfc8bc10041ef78b7d840a908e0e40540c1 | [log] [tgz] |
---|---|---|
author | Brian Lan <brianbclan@fb.com> | Wed Jun 28 11:03:05 2017 -0700 |
committer | Facebook Github Bot <facebook-github-bot@users.noreply.github.com> | Wed Jun 28 11:24:01 2017 -0700 |
tree | deb80d0bcce36de6cf6c992e24c6a8e6f0bfc003 | |
parent | 82600029416936b4bf54da38d1143cd370c3e85a [diff] |
Add __sub__ function for schema.Struct Summary: This is for the ease of removing the common fields of a struct from another. For example, s1 = Struct( ('a', Scalar()), ('b', Scalar()), ) s2 = Struct(('a', Scalar())) s1 - s2 == Struct(('b', Scalar())) More examples are provided in the code comments. Differential Revision: D5299277 fbshipit-source-id: 7008586ffdc8e24e1eccc8757da70330c4d90370
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.
Caffe2 research award competition request for proposals
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 BSD 2-Clause license.