Skip to content

Commit

Permalink
Merge pull request #4090 from deeplearning4j/sa_kerasfix
Browse files Browse the repository at this point in the history
Allow setting WorkspaceMode for transfer learning as well
  • Loading branch information
AlexDBlack committed Sep 19, 2017
2 parents 04873c9 + 8eafeda commit b38b6d9
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -67,6 +67,9 @@ public class FineTuneConfiguration {
protected Integer tbpttFwdLength;
protected Integer tbpttBackLength;

protected WorkspaceMode trainingWorkspaceMode;
protected WorkspaceMode inferenceWorkspaceMode;

//Lombok builder. Note that the code below ADDS OR OVERRIDES the lombok implementation; the final builder class
// is the composite of the lombok parts and the parts defined here
//partial implementation to allow public no-arg constructor (lombok default is package private)
Expand Down Expand Up @@ -268,6 +271,10 @@ public NeuralNetConfiguration.Builder appliedNeuralNetConfigurationBuilder() {
confBuilder.setGradientNormalization(gradientNormalization);
if (gradientNormalizationThreshold != null)
confBuilder.setGradientNormalizationThreshold(gradientNormalizationThreshold);
if (trainingWorkspaceMode != null)
confBuilder.trainingWorkspaceMode(trainingWorkspaceMode);
if (inferenceWorkspaceMode != null)
confBuilder.inferenceWorkspaceMode(inferenceWorkspaceMode);
return confBuilder;
}

Expand Down

0 comments on commit b38b6d9

Please sign in to comment.