Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Julia custom operator does not work when Variables are present #8

Open
kailaix opened this issue Sep 1, 2019 · 1 comment
Open
Labels
help wanted Extra attention is needed

Comments

@kailaix
Copy link
Owner

kailaix commented Sep 1, 2019

When there is a Variable in the upstream operations, Julia custom operator will fail.

Example: JuliaOpModule in ADCME.jl

push!(LOAD_PATH, "..")
include("../JuliaOpModule.jl")
using ADCME
import JuliaOpModule:do_it, DoIt!
x = Variable(rand(100))
y = 2x # or `y = Variable(rand(100))`
u = do_it(y)
sess = Session()
init(sess)
run(sess, u)
@kailaix kailaix added the invalid This doesn't seem right label Sep 1, 2019
@kailaix
Copy link
Owner Author

kailaix commented Sep 20, 2019

This is mostly due to TensorFlow C++ multithreading. It is not easy to call Julia from a non-event loop thread.

@kailaix kailaix added help wanted Extra attention is needed and removed invalid This doesn't seem right labels Sep 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant