Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How is tf.summary.tensor_summary meant to be used?

Tags:

TensorFlow provides a tf.summary.tensor_summary() function that appears to be a multidimensional variant of tf.summary.scalar():

tf.summary.tensor_summary(name, tensor, summary_description=None, collections=None) 

I thought it could be useful for summarizing inferred probabilities per class ... somewhat like

op_summary = tf.summary.tensor_summary('classes', some_tensor) # ... summary = sess.run(op_summary) writer.add_summary(summary) 

However it appears that TensorBoard doesn't provide a way to display these summaries at all. How are they meant to be used?

like image 722
sunside Avatar asked Feb 19 '17 15:02

sunside


People also ask

How to print a text summary in TensorFlow?

The .summary () function in tensorflow.js is used to print a text summary in favor of the sequential model’s layers.

What is summary in TensorFlow JS?

Tensorflow.js is an open-source library that is developed by Google for running machine learning models as well as deep learning neural networks in the browser or node environment. The .summary () function in tensorflow.js is used to print a text summary in favor of the sequential model’s layers.

What is TF layersmodel in TensorFlow?

The tf.LayersModel is a class used for training, inference, and evaluation of layers model in tensorflow.js. It contains methods for training, evaluation, prediction, and for saving of layers model purposes. So in this post, we are going to know about the model.summary () function.


1 Answers

I cannot get it to work either. It seems like that feature is still under development. See this video from the TensorFlow Dev Summit that states that the tensor_summary is still under development (starting at 9:17): https://youtu.be/eBbEDRsCmv4?t=9m17s. It will probably be better defined and examples should be provided in the future.

like image 71
Andrew Avatar answered Sep 17 '22 15:09

Andrew