Skip to content

Commit f790c7e

Browse files
Fixes bug #32
1 parent dce3c49 commit f790c7e

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

neural/neuraldatasetsv.pas

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ interface
2626

2727
uses
2828
neuraldatasets, Classes, SysUtils, ExtCtrls, Graphics,
29-
neuralvolume, neuralnetwork, StdCtrls;
29+
neuralvolume, neuralnetwork, StdCtrls
30+
{$IFNDEF FPC}, Windows{$ENDIF}
31+
;
3032

3133
type
3234
TImageDynArr = array of TImage;

neural/neuralnetwork.pas

+7-7
Original file line numberDiff line numberDiff line change
@@ -3688,49 +3688,49 @@ function THistoricalNets.AddParallelConvs(PointWiseConv: TNNetConvolutionClass;
36883688
if (CopyInput) then
36893689
begin
36903690
aL[UnitCnt] := PreviousLayer;
3691-
UnitCnt += 1;
3691+
Inc(UnitCnt);
36923692
end;
36933693
if (maxPool>0) then
36943694
begin
36953695
LastLayer := AddLayerAfter( TNNetMaxPool.Create(3,1,0), PreviousLayer);
36963696
aL[UnitCnt] := LocalAddBottleNeck(maxPool, LastLayer);
3697-
UnitCnt += 1;
3697+
Inc(UnitCnt);
36983698
end;
36993699
if (minPool>0) then
37003700
begin
37013701
LastLayer := AddLayerAfter( TNNetMinPool.Create(3,1,0), PreviousLayer);
37023702
aL[UnitCnt] := LocalAddBottleNeck(minPool, LastLayer);
3703-
UnitCnt += 1;
3703+
Inc(UnitCnt);
37043704
end;
37053705
if (p11count>0) then
37063706
begin
37073707
LocalAddConv(p11count, 1, PreviousLayer);
37083708
aL[UnitCnt] := GetLastLayer();
3709-
UnitCnt += 1;
3709+
Inc(UnitCnt);
37103710
end;
37113711
if (p33count>0) then
37123712
begin
37133713
LastLayer := PreviousLayer;
37143714
if BottleNeck > 0 then LastLayer := LocalAddBottleNeck(BottleNeck, PreviousLayer);
37153715
LocalAddConv(p33count, 3, LastLayer);
37163716
aL[UnitCnt] := GetLastLayer();
3717-
UnitCnt += 1;
3717+
Inc(UnitCnt);
37183718
end;
37193719
if (p55count>0) then
37203720
begin
37213721
LastLayer := PreviousLayer;
37223722
if BottleNeck > 0 then LastLayer := LocalAddBottleNeck(BottleNeck, PreviousLayer);
37233723
LocalAddConv(p55count, 5, LastLayer);
37243724
aL[UnitCnt] := GetLastLayer();
3725-
UnitCnt += 1;
3725+
Inc(UnitCnt);
37263726
end;
37273727
if (p77count>0) then
37283728
begin
37293729
LastLayer := PreviousLayer;
37303730
if BottleNeck > 0 then LastLayer := LocalAddBottleNeck(BottleNeck, PreviousLayer);
37313731
LocalAddConv(p77count, 7, LastLayer);
37323732
aL[UnitCnt] := GetLastLayer();
3733-
UnitCnt += 1;
3733+
Inc(UnitCnt);
37343734
end;
37353735
if UnitCnt > 1 then
37363736
begin

neural/neuralopencl.pas

+2
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,14 @@ interface
4646
TNeuralPChar = PAnsiChar;
4747
csize_t = NativeUInt;
4848
cl_bool = TCL_bool;
49+
cl_int = TCL_int;
4950
cl_uint = TCL_uint;
5051
cl_platform_id = PCL_platform_id;
5152
cl_device_id = PCL_device_id;
5253
cl_context = PCL_context;
5354
cl_command_queue = PCL_command_queue;
5455
cl_program = PCL_program;
56+
cl_map_flags = TCL_map_flags;
5557
cl_mem_flags = TCL_mem_flags;
5658
cl_mem = PCL_mem ;
5759
cl_kernel = PCL_kernel;

0 commit comments

Comments
 (0)