Why Nostr? What is Njump?
2024-05-31 17:27:34
in reply to

Anthropy :verified_dragon: on Nostr: it's actually simply a form of ternary expressions, like I think in C++ it'd be ...

it's actually simply a form of ternary expressions, like I think in C++ it'd be something along the lines of this probably, which you can then easily wrap in function call brackets all the same:
device = torch::cuda::is_available() ? "cuda" : "cpu"
Author Public Key
npub1umdyk0pm4euzhlkplpzl3eqa5ws4ksujpwnxpw8pjk6r4rhpx63qpwcfwh