mirror of
https://github.com/clearml/clearml
synced 2025-06-26 18:16:07 +00:00
Documentation examples
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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""")
|
||||
|
||||
@@ -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')
|
||||
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user