Hello,
I think you should specify the size of tensor elements when using from_blob, like : torch::from_blob(replay_memory.at(trainingIDX + 1).current_state.data(), { k_input_size_ }, torch::TensorOptions(torch::kFloat64))
Also if your device is cuda and if your data replay_memory.at(trainingIDX + 1).current_state.data() does not live in gpu memory you will have to clone the tensor before using to , like :
torch::from_blob(...).clone().to(*device)