Ejemplo n.º 1
0
 internal override LayerVertex Deserialize(IReadOnlyDictionary <string, object> properties)
 {
     base.Deserialize(properties);
     Enum.TryParse(properties[nameof(OperationKind)].ToString(), out EltwiseOperationKind operationKind);
     OperationKind = operationKind;
     return(this);
 }
Ejemplo n.º 2
0
 public static EltwiseLayerVertex EltwiseLayer(string name,
                                               EltwiseOperationKind operation = EltwiseOperationKind.Add)
 {
     return(new EltwiseLayerVertex(name)
     {
         OperationKind = operation
     });
 }