mirror of
https://github.com/clearml/clearml
synced 2025-02-07 21:33:25 +00:00
Add log text to TF V1 example
This commit is contained in:
parent
215aa32239
commit
8f1dd8ba8b
@ -45,6 +45,9 @@ all_distributions = [mean_moving_normal, variance_shrinking_normal, gamma, poiss
|
|||||||
all_combined = tf.concat(all_distributions, 0)
|
all_combined = tf.concat(all_distributions, 0)
|
||||||
tf.summary.histogram("all_combined", all_combined)
|
tf.summary.histogram("all_combined", all_combined)
|
||||||
|
|
||||||
|
# Log text value
|
||||||
|
tf.summary.text("this is a test", tf.make_tensor_proto("This is the content", dtype=tf.string))
|
||||||
|
|
||||||
# convert to 4d [batch, col, row, RGB-channels]
|
# convert to 4d [batch, col, row, RGB-channels]
|
||||||
image_open = Image.open('./samples/picasso.jpg')
|
image_open = Image.open('./samples/picasso.jpg')
|
||||||
image = np.asarray(image_open)
|
image = np.asarray(image_open)
|
||||||
|
Loading…
Reference in New Issue
Block a user