On Friday, April 15, 2016 at 12:14:53 AM UTC-4, Isaiah wrote:
>
> Your profiling result is not necessarily unreasonable. The listed line 
> number (exception.jl:78) is where the macro-wrapped code is actually 
> executed, and  "pass_image_to_ff" sounds like it could be expensive.
>
> Is the Julia-Pycall-TF wrapper copying data in that function? If so, then 
> it may be worth investigating the use of PyCall's buffer support instead, 
> to avoid copying (currently uses NumPy buffers underneath, see 
> https://github.com/stevengj/PyCall.jl/issues/38)
>

When passing arrays to Python, the PyCall default is already to use NumPy 
wrappers that pass the data without copying.

Reply via email to