i have output x from network 1 and another tensor y (with require grad = True) ! now  i want to concatenate tensor x and y to feed in network2 but when optimizing it raises an error and y.grad tensor is full of zeroes!!
how to solve this problem??