Commit Graph

3 Commits

Author SHA1 Message Date
Orion Reblitz-Richardson
1d5780d42c Remove Apache headers from source.
* LICENSE file contains details, so removing from individual source files.
2018-03-27 13:10:18 -07:00
Yangqing Jia
8286ce1e3a Re-license to Apache
Summary: Closes https://github.com/caffe2/caffe2/pull/1260

Differential Revision: D5906739

Pulled By: Yangqing

fbshipit-source-id: e482ba9ba60b5337d9165f28f7ec68d4518a0902
2017-09-28 16:22:00 -07:00
Yiming Wu
fa261cdafb arg_scope for model_helper
Summary:
arg_scope module for model_helpers.

Some coding example with it:

  with model_helpers.arg_scope([model_helpers.FC], kwargs):
              model_helpers.FC(model, "x", "out_1", n, n)

  with model_helpers.arg_scope([myhelper], n=-3):
              with model_helpers.arg_scope([myhelper], n=-2):
                  with model_helpers.arg_scope([myhelper], n=n):
                      res = model_helpers.myhelper(None)

  with model_helpers.arg_scope([myhelper], n=-3), \
          model_helpers.arg_scope([myhelper], n=-2), \
          model_helpers.arg_scope([myhelper], n=n):
                  res = model_helpers.myhelper(None)

Reviewed By: salexspb

Differential Revision: D4837180

fbshipit-source-id: 2cbd81681779d6cd1e61ee189edcc1cf3bb07d15
2017-04-24 15:52:25 -07:00