On a GPU, it seems either Madrona or the CUDA runtime zero-initializes the memory backing PartnerObservations and AgentMapObservations. On a CPU, this memory is left uninitialized which manifests itself as some floats taking on a nan value.
This PR zero-initializes PartnerObservation and AgentMapObservation which are unfilled. Note that k-NN already zero-initializes unfilled features and so does not need updating.
On a GPU, it seems either Madrona or the CUDA runtime zero-initializes the memory backing
PartnerObservations
andAgentMapObservations
. On a CPU, this memory is left uninitialized which manifests itself as some floats taking on anan
value.This PR zero-initializes
PartnerObservation
andAgentMapObservation
which are unfilled. Note that k-NN already zero-initializes unfilled features and so does not need updating.