c442e87d0b6a88e9787e8e82eb493e0dcf669c4d,doc/source/notebooks/intro_to_gpflow2.pct.py,,,#,266

Before Change



// %%
initial_value = 1.2
a = tf.Variable(initial_value)

// %% [markdown]
// Create `Checkpoint` object:

// %%
ckpt = tf.train.Checkpoint(a=a)
manager = tf.train.CheckpointManager(ckpt, output_logdir, max_to_keep=3)

// %% [markdown]
// Save the variable `a` and change its value right after:

After Change


print_task = ExecuteCallback(callback=print_cb)

// We group these tasks and specify a period of `100` steps for them
fast_tasks = MonitorTaskGroup([model_task, elbo_task, print_task], period=100)

// We also want to see the model"s fit during the optimisation
image_task = ImageToTensorBoard(output_logdir, plot_model, "samples_image")

// We typically don"t want to plot too frequently during optimisation,
// which is why we specify a larger period for this task.
slow_taks = MonitorTaskGroup(image_task, period=500)
monitor = Monitor(fast_tasks, slow_taks)


def monitored_training_loop(epochs: int):
    tf_optimization_step = tf.function(optimization_step)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: GPflow/GPflow
Commit Name: c442e87d0b6a88e9787e8e82eb493e0dcf669c4d
Time: 2020-03-26
Author: dutordoirv@gmail.com
File Name: doc/source/notebooks/intro_to_gpflow2.pct.py
Class Name:
Method Name:


Project Name: sony/nnabla-examples
Commit Name: 7d8f3f66495979f1bbd27205d422d673991709f2
Time: 2021-01-26
Author: Krishna.Wadhwani@sony.com
File Name: GANs/stylegan2/generate.py
Class Name:
Method Name: main


Project Name: sony/nnabla-examples
Commit Name: 9dab8ae56ce90f1b9ba6808a6e0673ab6f13103e
Time: 2020-12-15
Author: Krishna.Wadhwani@sony.com
File Name: GANs/stylegan2/generate.py
Class Name:
Method Name: main