Skip to content

Instantly share code, notes, and snippets.

@mdfarragher
Created December 12, 2019 12:44
Show Gist options
  • Save mdfarragher/540a8058f2d6f928059f1b6e0fc00204 to your computer and use it in GitHub Desktop.
Save mdfarragher/540a8058f2d6f928059f1b6e0fc00204 to your computer and use it in GitHub Desktop.
// create the label variable
var contentAndStyle = model.GetContentAndStyleLayers();
var labelVariable = new List<CNTK.Variable>();
for (int i = 0; i < labels.Length; i++)
{
var shape = contentAndStyle[i].Shape;
var input_variable = CNTK.Variable.InputVariable(shape, CNTK.DataType.Float, "content_and_style_" + i);
labelVariable.Add(input_variable);
}
// the rest of the code goes here...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment