Commit Graph

13 Commits

Author SHA1 Message Date
Luke Yeager
c8f444237f net_drawer: --input is required
Summary:
Before:
```
$ python -m caffe2.python.net_drawer
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/data/caffe2/install/caffe2/python/net_drawer.py", line 403, in <module>
    main()
  File "/data/caffe2/install/caffe2/python/net_drawer.py", line 365, in main
    with open(args.input, 'r') as fid:
TypeError: coercing to Unicode: need string or buffer, NoneType found
```
After:
```
$ python -m caffe2.python.net_drawer
usage: net_drawer.py [-h] --input INPUT [--output_prefix OUTPUT_PREFIX]
                     [--minimal] [--minimal_dependency] [--append_output]
                     [--rankdir RANKDIR]
net_drawer.py: error: argument --input is required
```
Closes https://github.com/caffe2/caffe2/pull/479

Differential Revision: D5003898

Pulled By: pietern

fbshipit-source-id: d121c331411ba4bbded81f9658ec787fa2fd3dc1
2017-05-04 11:45:57 -07:00
Aaron Markham
58f7f2b441 doxygen python block added
Summary: Closes https://github.com/caffe2/caffe2/pull/226

Differential Revision: D4793550

Pulled By: JoelMarcey

fbshipit-source-id: cc33e58186304fa8dcac2ee9115dcc271d785b1e
2017-03-29 06:46:16 -07:00
Dmytro Dzhulgakov
535e0e486b Add model graph to dper_example
Summary:
Just the first version displays forward part of the training net. I want to refactor local/distributed code to share graph initialization and then visualize all nets individually.

Graphs don't look pretty because of a lot of DotProducts, we need to refactor it.

Reviewed By: xianjiec

Differential Revision: D4514479

fbshipit-source-id: 156bb07c62118b15022c87f197b5e378a7ef3b9f
2017-02-07 13:03:54 -08:00
Dmytro Dzhulgakov
078a8d10de Move png image to net_drawer and Flow example
Summary:
Making drawing a bit easier

Also adds a Flow example to check that PNG images are nicely rendered in lists.

Reviewed By: kennyhorror

Differential Revision: D4514470

fbshipit-source-id: 35189c4543c31a351c1dbfe804ce25ae14a3a98b
2017-02-06 18:46:48 -08:00
Minsuk (Brian) Kahng
de8cd46416 Caffe2 graph to json for visualization in flow
Summary:
- Writing a Caffe2 computation graph to json for visualization in Flow
- Example use in the Text models workflow: it replaces the existing draw function which produces PNG file
- Visualization: https://our.intern.facebook.com/intern/fblearner/c2graphvis/13215753/
- The visualization uses FBLearnerDAG. Plan to add many visualization-related features.

Reviewed By: Mortimerp9

Differential Revision: D4415299

fbshipit-source-id: 2d641d60177566ed2837fb3750394420690f28de
2017-01-25 19:44:20 -08:00
Yangqing Jia
238ceab825 fbsync. TODO: check if build files need update. 2016-11-15 00:00:46 -08:00
Yangqing Jia
d1e9215184 fbsync 2016-10-07 13:08:53 -07:00
Yangqing Jia
05512d1e10 sync 2016-08-10 11:02:15 -07:00
Yangqing Jia
bcea409c82 sync 2016-07-28 15:06:43 -07:00
Yangqing Jia
6463eebc7b chunky sync - build scripts to be written 2016-07-21 10:16:42 -07:00
Yangqing Jia
559053d3a8 chunky sync 2016-05-13 14:43:48 -07:00
Yangqing Jia
cf7ca23fc1 make caffe2.python build 2016-03-08 16:48:19 -08:00
Yangqing Jia
9ae880bb6f move pycaffe2 to caffe2.python 2016-03-08 15:45:30 -08:00