Finally it works

This commit is contained in:
2025-11-26 12:55:09 +04:00
parent 2db52adf0f
commit 153a13f443
12 changed files with 319 additions and 164 deletions

View File

@@ -6,6 +6,7 @@
#include <vector>
template <typename T, int Dim> class Tensor;
enum class Function { SIGMOID, RELU, MSE, LINEAR };
template <typename T, int Dim> class ITensor {
protected:
@@ -73,6 +74,8 @@ public:
Tensor operator*(const Tensor &other) const;
virtual Tensor apply(Function f, bool derivative = false) const = 0;
// === Utils ===
virtual std::string toString() const = 0;
};