PythonLayer takes parameters by string#2871
Conversation
|
@philkr have you adapted this test to Python 3 already? |
4130028 to
bd788bd
Compare
There was a problem hiding this comment.
NamedTemporaryFile is created with mode='w+b' by default, which in python3 is a buffer, not a string. To fix this just call NamedTemporaryFile(mode='w+', delete=False).
|
The python3 error is easy to fix (see above). I have no idea why python2 fails on those warnings... |
|
@shelhamer @philkr Thank you so much for taking care of my previous PR! Other than this, I still have a bunch of PRs for python that are not finished. If I need to update and polish them, please let me know. |
|
According to this post in Stack Overflow, maybe we have to include |
|
Hmm, the branch CI had passed but this is an issue. I'll try to fix it shortly. |
bd788bd to
9742bec
Compare
|
@jeffdonahue @longjon does anybody have a favorite name or is |
|
I think |
245f920 to
39794ed
Compare
|
I changed the name of the property to |
There was a problem hiding this comment.
Could we be consistent with single-quotes here?
|
Looks good except as noted. |
39794ed to
a756cfe
Compare
|
Thanks for the glance @longjon. Fixed and merging. |
[pycaffe] PythonLayer takes parameters by string
Cherry-picking of the PythonLayer string parameter from #2001 by @tnarihi to give
PythonLayeraparam_strmember for passing parameters through thepython_paramproto message.This is a simple change in itself that leaves the choice of what and how to parameterize open.
There is no automatic
eval