Commit Graph

9 Commits

Author SHA1 Message Date
Bugra Akyildiz
27c7158166 Remove __future__ imports for legacy Python2 supports (#45033)
Summary:
There is a module called `2to3` which you can target for future specifically to remove these, the directory of `caffe2` has the most redundant imports:

```2to3 -f future -w caffe2```

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

Reviewed By: seemethere

Differential Revision: D23808648

Pulled By: bugra

fbshipit-source-id: 38971900f0fe43ab44a9168e57f2307580d36a38
2020-09-23 17:57:02 -07:00
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
Luke Yeager
944115c915 Bugfix for concat frontend
Summary:
When breaking out pooyadavoodi's change to `brew.concat` from https://github.com/caffe2/caffe2/pull/1151 to https://github.com/caffe2/caffe2/pull/1184, I made it throw an error instead of silently changing removing `order`. But `order` is always present because of [this](https://github.com/caffe2/caffe2/blob/v0.8.1/caffe2/python/model_helper.py#L118), so the frontend can never be used to set `axis`. That's bad. This PR changes the behavior back to Pooya's original implementation.
Closes https://github.com/caffe2/caffe2/pull/1202

Reviewed By: akyrola

Differential Revision: D5806488

Pulled By: pietern

fbshipit-source-id: ceaea77469688a66b269b8ed2944f0d3fe873940
2017-09-11 13:02:59 -07:00
Luke Yeager
03de05229e brew.concat: don't set both order and axis
Summary:
Was https://github.com/caffe2/caffe2/pull/1151.

pooyadavoodi says this was causing problems for him. I don't remember the details.
Closes https://github.com/caffe2/caffe2/pull/1184

Differential Revision: D5794711

Pulled By: akyrola

fbshipit-source-id: 4d75f2a9b30881ba662141c352ac556cb5d3cce6
2017-09-08 10:34:34 -07:00
Yiming Wu
0bb558716a rename model_helpers to brew and lowercase all helper functions
Summary:
rename model_helpers to brew. This is a big diff now. I did these things:

1. replace model_helpers with brew:

  find . -type f -exec sed -i 's/model_helpers/brew/g' {} +

2. rename model_helpers.py and model_helpers_test.py
3. rename ModelHelpersTest to BrewTest
4. lowercase all the helper functions to distinguish them from single op
5. run my unittests
6. run converge tests

Reviewed By: salexspb

Differential Revision: D4930465

fbshipit-source-id: f420a1b03238df1cbe9f4426e0b9c43a12119661
2017-04-24 15:52:26 -07:00
Yiming Wu
277b4eca97 array helpers (concat)
Summary: Adding array helpers

Reviewed By: salexspb

Differential Revision: D4884933

fbshipit-source-id: 2ec3dd37b243c8c717e299876eef7650a08d3f2b
2017-04-17 15:03:04 -07:00
Aapo Kyrola
a8ef3b4090 Revert D4855073: [EAZY][C2 OSS] Add array_helpers and proxy to CNN
Summary: This reverts commit 7272f62cff5d065eb028b8118a1ca190bd801fd5

Differential Revision: D4855073

fbshipit-source-id: a121e6bb98c37c7af0b59efad275e00bd5d21163
2017-04-12 16:36:33 -07:00
Yiming Wu
b2e94a7bcb Add array_helpers and proxy to CNN
Reviewed By: salexspb

Differential Revision: D4855073

fbshipit-source-id: 7272f62cff5d065eb028b8118a1ca190bd801fd5
2017-04-11 23:02:59 -07:00