Ben_Usman:

Right. I want these weights to be a function of my data and current state.


Try passing every parameter to binary_Cross_entropy as a Variable; I don’t know what the types of output or full_y are, but weight_cat.data is definitely a tensor.