public interface TrainerContext
Trainer
instances for use with ParallelWrapper| Modifier and Type | Method and Description |
|---|---|
Trainer |
create(int threadId,
org.deeplearning4j.nn.api.Model model,
int rootDevice,
boolean useMDS,
ParallelWrapper wrapper,
org.deeplearning4j.nn.conf.WorkspaceMode workspaceMode,
int averagingFrequency)
Create a
Trainer
based on the given parameters |
void |
finalizeRound(org.deeplearning4j.nn.api.Model originalModel,
org.deeplearning4j.nn.api.Model... models)
This method is called at averagingFrequency
|
void |
finalizeTraining(org.deeplearning4j.nn.api.Model originalModel,
org.deeplearning4j.nn.api.Model... models)
This method is called
|
void |
init(org.deeplearning4j.nn.api.Model model,
Object... args)
Initialize the context
|
void init(org.deeplearning4j.nn.api.Model model,
Object... args)
model - args - the arguments to initialize with (maybe null)Trainer create(int threadId, org.deeplearning4j.nn.api.Model model, int rootDevice, boolean useMDS, ParallelWrapper wrapper, org.deeplearning4j.nn.conf.WorkspaceMode workspaceMode, int averagingFrequency)
Trainer
based on the given parametersthreadId - the thread id to use for this workermodel - the model to start the trainer withrootDevice - the root device iduseMDS - whether to use the MagicQueue
or notwrapper - the wrapper instance to use with this trainer (this refernece is needed
for coordination with the ParallelWrapper 's IterationListenervoid finalizeRound(org.deeplearning4j.nn.api.Model originalModel,
org.deeplearning4j.nn.api.Model... models)
originalModel - models - void finalizeTraining(org.deeplearning4j.nn.api.Model originalModel,
org.deeplearning4j.nn.api.Model... models)
originalModel - models - Copyright © 2017. All rights reserved.