Documentation examples

This commit is contained in:
allegroai
2020-12-24 00:30:32 +02:00
parent 7edc998824
commit a29a655a6e
50 changed files with 223 additions and 37 deletions

View File

@@ -39,6 +39,9 @@ import tensorflow as tf
from tensorboard.plugins.pr_curve import summary
from clearml import Task
# Connecting ClearML with the current process,
# from here on everything is logged automatically
task = Task.init(project_name='examples', task_name='tensorboard pr_curve')
tf.compat.v1.disable_v2_behavior()

View File

@@ -8,9 +8,12 @@ import numpy as np
from PIL import Image
from clearml import Task
task = Task.init(project_name='examples', task_name='tensorboard toy example')
# Connecting ClearML with the current process,
# from here on everything is logged automatically
task = Task.init(project_name='examples', task_name='tensorboard toy example')
k = tf.placeholder(tf.float32)
# Make a normal distribution, with a shifting mean

View File

@@ -32,11 +32,13 @@ from tensorflow.examples.tutorials.mnist import input_data
from clearml import Task
tf.compat.v1.enable_eager_execution()
# Connecting ClearML with the current process,
# from here on everything is logged automatically
task = Task.init(project_name='examples', task_name='Tensorflow eager mode')
FLAGS = tf.app.flags.FLAGS
tf.app.flags.DEFINE_integer('data_num', 100, """Flag of type integer""")
tf.app.flags.DEFINE_string('img_path', './img', """Flag of type string""")

View File

@@ -34,6 +34,9 @@ from tensorflow.examples.tutorials.mnist import input_data
from clearml import Task
FLAGS = None
# Connecting ClearML with the current process,
# from here on everything is logged automatically
task = Task.init(project_name='examples', task_name='Tensorflow mnist with summaries example')

View File

@@ -6,6 +6,9 @@ import tempfile
import tensorflow as tf
from clearml import Task
# Connecting ClearML with the current process,
# from here on everything is logged automatically
task = Task.init(project_name='examples', task_name='Model configuration and upload')
model = tf.Module()

View File

@@ -39,6 +39,8 @@ from tensorboard.plugins.pr_curve import summary
from clearml import Task
# Connecting ClearML with the current process,
# from here on everything is logged automatically
task = Task.init(project_name='examples', task_name='tensorboard pr_curve')
tf.compat.v1.disable_v2_behavior()

View File

@@ -11,8 +11,9 @@ from tensorflow.keras import Model
from clearml import Task
task = Task.init(project_name='examples',
task_name='Tensorflow v2 mnist with summaries')
# Connecting ClearML with the current process,
# from here on everything is logged automatically
task = Task.init(project_name='examples', task_name='Tensorflow v2 mnist with summaries')
# Load and prepare the MNIST dataset.