Skip to content

Commit fcbd50e

Browse files
committed
Update requirements.txt: delegate to setup.py
1 parent ac981b7 commit fcbd50e

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
six>=1.10.0
2-
numpy>=1.10.4
3-
matplotlib>=2.0.0
4-
tensorflow>=1.0.0
1+
-e .
2+
3+
# test/dev environment
4+
tensorflow>=1.4.0
55

66
# vim: set ft=conf:

tfplot/wrapper.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def _wrapped_factory_fn(*args, **kwargs_call):
195195

196196
@biwrap
197197
def autowrap(plot_func=REQUIRED, _sentinel=None,
198-
name=None, figsize=None, tight_layout=False):
198+
batch=False, name=None, figsize=None, tight_layout=False):
199199
"""
200200
Wrap a function as a TensorFlow operation similar to :func:`tfplot.wrap()`
201201
(as a decorator or with normal function call), but provides with additional
@@ -228,6 +228,8 @@ def autowrap(plot_func=REQUIRED, _sentinel=None,
228228
has a parameter named ``fig`` and/or ``ax``, new instances of
229229
``Figure`` and/or ``AxesSubplot`` will be created and passed.
230230
231+
batch: If True, all the tensors passed as argument will be
232+
assumed to be batched. Default value is False.
231233
name: A default name for the operation (optional). If not given, the
232234
name of ``plot_func`` will be used.
233235
@@ -285,7 +287,7 @@ def _wrapped_plot_fn(*args, **kwargs_call):
285287

286288
return ret
287289

288-
_wrapped_fn = wrap(_wrapped_plot_fn, name=name) # TODO kwargs
290+
_wrapped_fn = wrap(_wrapped_plot_fn, batch=batch, name=name) # TODO kwargs
289291

290292
_wrapped_fn.__name__ = 'autowrap[%s]' % plot_func.__name__
291293
if hasattr(plot_func, '__qualname__'):

0 commit comments

Comments
 (0)