-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Feature request: Support vectorisation for Screen.reading
histogram
#351
Comments
Cheetah is fully vectorised. Unless there is a bug, it should therefore be no problem to get a batch of screen readings by, for example, supplying a vector of magnet settings with something like this: segment = cheetah.Segment(
[
cheetah.HorizontalCorrector(angle=torch.tensor([1e-5, 2e-5, 3e-5]), length=torch.tensor(0.15)),
cheetah.Drift(length=torch.tensor(1.0)),
cheetah.Screen(resolution=(200, 100), is_active=True, name="my_screen"),
],
)
outgoing_beam = segment.track(incoming_beam)
segment.my_screen.reading.shape # Should be (3, 100, 200) |
Odd, I went to do a batch of screens for a quad with a k1 set to a
|
Oh, you're right. I forgot that when Of course, as soon as PyTorch supports this, we would like to add it to Cheetah as well (or if someone has a good hand-made implementation). |
Screens are great outputs for training against, and doing them in batches would be preferred!
The text was updated successfully, but these errors were encountered: