Say I import as following. 

from theano.printing import pydotprint as static_theano_print 
>
> from theano.d3viz import d3viz as dynamic_theano_print
>
>
and I create a theano function which is function. and I have a path and a 
filename in the variable filename and I do the following:
 

>         static_theano_print(function, filename + '.png') 

        dynamic_theano_print(function, filename + '.html') # this is not 
> working for something


The static printer is printing a beautiful png file. But the dynamic 
printer is throwing me the following error:

  File 
"/home/ragav/anaconda2/lib/python2.7/site-packages/theano/d3viz/d3viz.py", 
line 80, in d3viz

    graph = formatter(fct)

  File 
"/home/ragav/anaconda2/lib/python2.7/site-packages/theano/d3viz/formatting.py", 
line 203, in __call__

    vparams['tag'] = var_tag(var)

  File 
"/home/ragav/anaconda2/lib/python2.7/site-packages/theano/d3viz/formatting.py", 
line 315, in var_tag

    path = os.path.basename(path)

  File "/home/ragav/anaconda2/lib/python2.7/posixpath.py", line 114, in 
basename

    i = p.rfind('/') + 1

AttributeError: 'tuple' object has no attribute 'rfind'
 
I wonder why and how I can solve this ?
 

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to