Skip to content

Commit 31f7b2e

Browse files
Fixes code portability. #66
1 parent dbfb8af commit 31f7b2e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

neural/neuralnetwork.pas

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9770,8 +9770,8 @@ function TNNet.CreateLayer(strData: string): TNNetLayer;
97709770
if S[0] = 'TNNetConvolutionLinear' then Result := TNNetConvolutionLinear.Create(St[0], St[1], St[2], St[3], St[4]) else
97719771
if S[0] = 'TNNetGroupedConvolutionLinear' then Result := TNNetGroupedConvolutionLinear.Create(St[0], St[1], St[2], St[3], St[5], St[4]) else
97729772
if S[0] = 'TNNetGroupedConvolutionReLU' then Result := TNNetGroupedConvolutionReLU.Create(St[0], St[1], St[2], St[3], St[5], St[4]) else
9773-
if S[0] = 'TNNetGroupedPointwiseConvLinear' then Result := TNNetGroupedPointwiseConvLinear.Create({pNumFeatures=}St[0], {pGroups=}St[5], {pSuppressBias=}St[4]);
9774-
if S[0] = 'TNNetGroupedPointwiseConvReLU' then Result := TNNetGroupedPointwiseConvReLU.Create({pNumFeatures=}St[0], {pGroups=}St[5], {pSuppressBias=}St[4]);
9773+
if S[0] = 'TNNetGroupedPointwiseConvLinear' then Result := TNNetGroupedPointwiseConvLinear.Create({pNumFeatures=}St[0], {pGroups=}St[5], {pSuppressBias=}St[4]) else
9774+
if S[0] = 'TNNetGroupedPointwiseConvReLU' then Result := TNNetGroupedPointwiseConvReLU.Create({pNumFeatures=}St[0], {pGroups=}St[5], {pSuppressBias=}St[4]) else
97759775
if S[0] = 'TNNetConvolutionSharedWeights' then Result := TNNetConvolutionSharedWeights.Create(FLayers[St[5]]) else
97769776
if S[0] = 'TNNetDepthwiseConv' then Result := TNNetDepthwiseConv.Create(St[0], St[1], St[2], St[3]) else
97779777
if S[0] = 'TNNetDepthwiseConvReLU' then Result := TNNetDepthwiseConvReLU.Create(St[0], St[1], St[2], St[3]) else
@@ -9787,7 +9787,7 @@ function TNNet.CreateLayer(strData: string): TNNetLayer;
97879787
if S[0] = 'TNNetMaxChannel' then Result := TNNetMaxChannel.Create() else
97889788
if S[0] = 'TNNetMinChannel' then Result := TNNetMinChannel.Create() else
97899789
if S[0] = 'TNNetConcat' then Result := TNNetConcat.Create(aL) else
9790-
if S[0] = 'TNNetInterleaveChannels' then Result := TNNetInterleaveChannels.Create(St[0]);
9790+
if S[0] = 'TNNetInterleaveChannels' then Result := TNNetInterleaveChannels.Create(St[0]) else
97919791
if S[0] = 'TNNetDeepConcat' then Result := TNNetDeepConcat.Create(aL) else
97929792
if S[0] = 'TNNetSum' then Result := TNNetSum.Create(aL) else
97939793
if S[0] = 'TNNetSplitChannels' then Result := TNNetSplitChannels.Create(aIdx) else
@@ -9805,10 +9805,10 @@ function TNNet.CreateLayer(strData: string): TNNetLayer;
98059805
if S[0] = 'TNNetChannelStdNormalization' then Result := TNNetChannelStdNormalization.Create() else
98069806
if S[0] = 'TNNetChannelBias' then Result := TNNetChannelBias.Create() else
98079807
if S[0] = 'TNNetChannelMul' then Result := TNNetChannelMul.Create() else
9808-
if S[0] = 'TNNetChannelMulByLayer' then Result := TNNetChannelMulByLayer.Create(St[0], St[1]);
9808+
if S[0] = 'TNNetChannelMulByLayer' then Result := TNNetChannelMulByLayer.Create(St[0], St[1]) else
98099809
if S[0] = 'TNNetCellBias' then Result := TNNetCellBias.Create() else
98109810
if S[0] = 'TNNetCellMul' then Result := TNNetCellMul.Create() else
9811-
if S[0] = 'TNNetCellMulByCell' then Result := TNNetCellMulByCell.Create(St[0], St[1]);
9811+
if S[0] = 'TNNetCellMulByCell' then Result := TNNetCellMulByCell.Create(St[0], St[1]) else
98129812
if S[0] = 'TNNetRandomMulAdd' then Result := TNNetRandomMulAdd.Create(St[0], St[1]) else
98139813
if S[0] = 'TNNetChannelRandomMulAdd' then Result := TNNetChannelRandomMulAdd.Create(St[0], St[1]) else
98149814
if S[0] = 'TNNetChannelZeroCenter' then Result := TNNetChannelZeroCenter.Create() else

0 commit comments

Comments
 (0)