Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions drone_estimators/ros/node.py

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Martin said this could still allocate GPU memory. I think
jax.config.update('jax_platform_name', 'cpu')
is cleaner

Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
# Note: All ros nodes started after this line will also only publish locally!
# Identical console command: ROS_AUTOMATIC_DISCOVERY_RANGE="LOCALHOST"
os.environ["ROS_AUTOMATIC_DISCOVERY_RANGE"] = "LOCALHOST"
os.environ["JAX_PLATFORMS"] = "cpu"

import jax
import numpy as np
Expand Down
Loading