title: How to create custom neural network with custom weight initialization in tensorflow or pytorch
body: <p>I'm trying to create a small neural network with custom connections between neurons. The connections should exist over several layers and not be fully connected (sparse) as shown in the picture. I would also like to do the weight initialization manually and not completely randomly. My goal is to determine whether a connection is positive or negative. Is it possible to create such a neural net in tensorflow (python/js) or pytorch?</p>
  
  <p><a href="https://i.stack.imgur.com/XSPPG.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XSPPG.jpg" alt="enter image description here"></a></p>