@@ -195,7 +195,7 @@ def _wrapped_factory_fn(*args, **kwargs_call):
195
195
196
196
@biwrap
197
197
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 ):
199
199
"""
200
200
Wrap a function as a TensorFlow operation similar to :func:`tfplot.wrap()`
201
201
(as a decorator or with normal function call), but provides with additional
@@ -228,6 +228,8 @@ def autowrap(plot_func=REQUIRED, _sentinel=None,
228
228
has a parameter named ``fig`` and/or ``ax``, new instances of
229
229
``Figure`` and/or ``AxesSubplot`` will be created and passed.
230
230
231
+ batch: If True, all the tensors passed as argument will be
232
+ assumed to be batched. Default value is False.
231
233
name: A default name for the operation (optional). If not given, the
232
234
name of ``plot_func`` will be used.
233
235
@@ -285,7 +287,7 @@ def _wrapped_plot_fn(*args, **kwargs_call):
285
287
286
288
return ret
287
289
288
- _wrapped_fn = wrap (_wrapped_plot_fn , name = name ) # TODO kwargs
290
+ _wrapped_fn = wrap (_wrapped_plot_fn , batch = batch , name = name ) # TODO kwargs
289
291
290
292
_wrapped_fn .__name__ = 'autowrap[%s]' % plot_func .__name__
291
293
if hasattr (plot_func , '__qualname__' ):
0 commit comments