Commit Graph

2 Commits

Author SHA1 Message Date
Thomas Dudziak
47e921ba49 Remove map() and filter() in favor of comprehensions
Summary: These return views in Python 3 which would not do anything in a lot of usages currently present in Caffe2. This diff simply removes (almost) all usages of these two in Caffe2 and sub projects in favor of comprehensions which are also easier to read/understand

Reviewed By: akyrola

Differential Revision: D5142049

fbshipit-source-id: e800631d2df7d0823fed698cae46c486038007dc
2017-05-30 15:32:58 -07:00
Alisson Gusatti Azzolini
17151ca14f Debug/Analysis tools for Jobs/ExecutionSteps
Summary:
Introduces 2 utitilies:
- ##print_obj##: Prints the whole Job in a nice way -- each op call takes one single line and nets are inlined for much better readability. Loops and parallel steps are easy to read.
- ##analyse_obj##: Goes through a Job and checks 2 things:
    - that there will be no undefined blob errors at execution.
    - no blob of same name will be created by parallel execution steps

Reviewed By: dzhulgakov

Differential Revision: D4142381

fbshipit-source-id: 61bf3398c22e9947493e99145ce2bfc2646830a6
2017-02-06 17:31:20 -08:00