Sorry for not replying, i left my ML hobby for a few months, if it is still useful, the problem was probably in a moduled structure, because after i rewrote it from scratch but using just layers, it started working, kinda, still didnt output any useful results, but output was at least somewhat structured, sorry once again for not replying