Skip to content

Commit

Permalink
store only features, not the coordinates on gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
axsk committed May 11, 2024
1 parent 86740e1 commit 5f36c01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simulation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ end

#features(sim::SimulationData, x) = sim.featurizer(x)

gpu(d::SimulationData) = SimulationData(d.sim, gpu(d.features), gpu(d.coords), d.featurizer)
cpu(d::SimulationData) = SimulationData(d.sim, cpu(d.features), cpu(d.coords), d.featurizer)
gpu(d::SimulationData) = SimulationData(d.sim, gpu(d.features), d.coords, d.featurizer)
cpu(d::SimulationData) = SimulationData(d.sim, cpu(d.features), d.coords, d.featurizer)

features(d::SimulationData, x) = d.featurizer(x)

Expand Down

0 comments on commit 5f36c01

Please sign in to comment.