Quantcast
Channel: How to feed a local placeholder of some function from main function? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by pfm for How to feed a local placeholder of some function from main...

If you want to access a placeholder or a tensor directly you can call get_tensor_by_name: import tensorflow as tf def f(): a=tf.placeholder(dtype=tf.float32, name='name_a')...

View Article



How to feed a local placeholder of some function from main function?

I defined some tensor operations in a function defining the placeholders locally. That function returns the result tensor, which I want to run/print from my main function (or maybe any other...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images