Solved by Fugurcali in post #3 
              
              
                for (const auto& pair : this->conv1_1->parameters()) {
        pair.copy_(in); // in is torch::Tensor type
    }

copy_() solves my problem. Just be careful about in tensor size since this loop will also try to update bias.