ó ùµÈ[c@@sddZddlmZddlZddlmZmZd„Zdefd„ƒYZ d „Z dS( sEngine properties management.i(tabsolute_importNi(t_LIBt check_callcC@s;tjƒ}ttjtj|ƒtj|ƒƒƒ|jS(siSet size limit on bulk execution. Bulk execution bundles many operators to run together. This can improve performance when running a lot of small operators sequentially. Parameters ---------- size : int Maximum number of operators that can be bundled in a bulk. Returns ------- int Previous bulk size. (tctypestc_intRRtMXEngineSetBulkSizetbyreftvalue(tsizetprev((sL/usr/local/lib/python2.7/site-packages/mxnet-1.3.1-py2.7.egg/mxnet/engine.pyt set_bulk_sizes  t _BulkScopecB@s)eZdZd„Zd„Zd„ZRS(s Scope object for bulk execution.cC@s||_d|_dS(N(t_sizetNonet _old_size(tselfR((sL/usr/local/lib/python2.7/site-packages/mxnet-1.3.1-py2.7.egg/mxnet/engine.pyt__init__3s cC@st|jƒ|_|S(N(R R R(R((sL/usr/local/lib/python2.7/site-packages/mxnet-1.3.1-py2.7.egg/mxnet/engine.pyt __enter__7scC@st|jƒdS(N(R R(RtptypeRttrace((sL/usr/local/lib/python2.7/site-packages/mxnet-1.3.1-py2.7.egg/mxnet/engine.pyt__exit__;s(t__name__t __module__t__doc__RRR(((sL/usr/local/lib/python2.7/site-packages/mxnet-1.3.1-py2.7.egg/mxnet/engine.pyR 1s  cC@s t|ƒS(s>Bulk execution bundles many operators to run together. This can improve performance when running a lot of small operators sequentially. Returns a scope for managing bulk size:: with mx.engine.bulk(10): x = mx.nd.zeros((1,)) for i in range(100): x += 1 (R (R((sL/usr/local/lib/python2.7/site-packages/mxnet-1.3.1-py2.7.egg/mxnet/engine.pytbulk?s ( Rt __future__RRtbaseRRR tobjectR R(((sL/usr/local/lib/python2.7/site-packages/mxnet-1.3.1-py2.7.egg/mxnet/engine.pyts