Dense Layer, Add

added the dense layer with a forward functions. I also made the add functions for most cases.
This commit is contained in:
2026-06-25 19:43:07 +02:00
parent 9b20278395
commit 189d605bfa
27 changed files with 1657 additions and 902 deletions
+81
View File
@@ -178,6 +178,78 @@ src/io/print_tensor.cpp.s:
$(MAKE) $(MAKESILENT) -f CMakeFiles/panic.dir/build.make CMakeFiles/panic.dir/src/io/print_tensor.cpp.s
.PHONY : src/io/print_tensor.cpp.s
src/math/add.o: src/math/add.cpp.o
.PHONY : src/math/add.o
# target to build an object file
src/math/add.cpp.o:
$(MAKE) $(MAKESILENT) -f CMakeFiles/panic.dir/build.make CMakeFiles/panic.dir/src/math/add.cpp.o
.PHONY : src/math/add.cpp.o
src/math/add.i: src/math/add.cpp.i
.PHONY : src/math/add.i
# target to preprocess a source file
src/math/add.cpp.i:
$(MAKE) $(MAKESILENT) -f CMakeFiles/panic.dir/build.make CMakeFiles/panic.dir/src/math/add.cpp.i
.PHONY : src/math/add.cpp.i
src/math/add.s: src/math/add.cpp.s
.PHONY : src/math/add.s
# target to generate assembly for a file
src/math/add.cpp.s:
$(MAKE) $(MAKESILENT) -f CMakeFiles/panic.dir/build.make CMakeFiles/panic.dir/src/math/add.cpp.s
.PHONY : src/math/add.cpp.s
src/math/matmul.o: src/math/matmul.cpp.o
.PHONY : src/math/matmul.o
# target to build an object file
src/math/matmul.cpp.o:
$(MAKE) $(MAKESILENT) -f CMakeFiles/panic.dir/build.make CMakeFiles/panic.dir/src/math/matmul.cpp.o
.PHONY : src/math/matmul.cpp.o
src/math/matmul.i: src/math/matmul.cpp.i
.PHONY : src/math/matmul.i
# target to preprocess a source file
src/math/matmul.cpp.i:
$(MAKE) $(MAKESILENT) -f CMakeFiles/panic.dir/build.make CMakeFiles/panic.dir/src/math/matmul.cpp.i
.PHONY : src/math/matmul.cpp.i
src/math/matmul.s: src/math/matmul.cpp.s
.PHONY : src/math/matmul.s
# target to generate assembly for a file
src/math/matmul.cpp.s:
$(MAKE) $(MAKESILENT) -f CMakeFiles/panic.dir/build.make CMakeFiles/panic.dir/src/math/matmul.cpp.s
.PHONY : src/math/matmul.cpp.s
src/neural_network/layer/layer_dense.o: src/neural_network/layer/layer_dense.cpp.o
.PHONY : src/neural_network/layer/layer_dense.o
# target to build an object file
src/neural_network/layer/layer_dense.cpp.o:
$(MAKE) $(MAKESILENT) -f CMakeFiles/panic.dir/build.make CMakeFiles/panic.dir/src/neural_network/layer/layer_dense.cpp.o
.PHONY : src/neural_network/layer/layer_dense.cpp.o
src/neural_network/layer/layer_dense.i: src/neural_network/layer/layer_dense.cpp.i
.PHONY : src/neural_network/layer/layer_dense.i
# target to preprocess a source file
src/neural_network/layer/layer_dense.cpp.i:
$(MAKE) $(MAKESILENT) -f CMakeFiles/panic.dir/build.make CMakeFiles/panic.dir/src/neural_network/layer/layer_dense.cpp.i
.PHONY : src/neural_network/layer/layer_dense.cpp.i
src/neural_network/layer/layer_dense.s: src/neural_network/layer/layer_dense.cpp.s
.PHONY : src/neural_network/layer/layer_dense.s
# target to generate assembly for a file
src/neural_network/layer/layer_dense.cpp.s:
$(MAKE) $(MAKESILENT) -f CMakeFiles/panic.dir/build.make CMakeFiles/panic.dir/src/neural_network/layer/layer_dense.cpp.s
.PHONY : src/neural_network/layer/layer_dense.cpp.s
src/tensor/matrix.o: src/tensor/matrix.cpp.o
.PHONY : src/tensor/matrix.o
@@ -241,6 +313,15 @@ help:
@echo "... src/io/print_tensor.o"
@echo "... src/io/print_tensor.i"
@echo "... src/io/print_tensor.s"
@echo "... src/math/add.o"
@echo "... src/math/add.i"
@echo "... src/math/add.s"
@echo "... src/math/matmul.o"
@echo "... src/math/matmul.i"
@echo "... src/math/matmul.s"
@echo "... src/neural_network/layer/layer_dense.o"
@echo "... src/neural_network/layer/layer_dense.i"
@echo "... src/neural_network/layer/layer_dense.s"
@echo "... src/tensor/matrix.o"
@echo "... src/tensor/matrix.i"
@echo "... src/tensor/matrix.s"