Quantcast
Browsing latest articles
Browse All 2 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 latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>