function WriteInputDatatoTxt(input_data)
input_data = permute(input_data,[2,1,3]);
[height, width, channels] = size(input_data);
if ~exist('input_data.txt','file')
    f2 = fopen('input_data.txt','w');
    for d = 1:1 % batchsize ;
        for i = 1:channels % chan
            for j = 1:height % rows
                for k = 1:width % cols
                    fprintf(f2,"%d\n",input_data(j,k,i));
                end
            end
        end
    end
end
end
