Function ams::onCPU¶ Defined in File AMSTensor.cpp Function Documentation¶ bool ams::onCPU(const AMSTensor &tensor)¶ Check if a tensor is on CPU (host memory). Parameters: tensor – The tensor to check Returns: true if tensor is on CPU, false if on device (GPU)