Event JSON
{
"id": "eacfc2282973c1d427a374aa4cbf41b9f44a9da9573bfc52df25e00868183646",
"pubkey": "e6da4b3c3bae782bfec1f845f8e41da3a15b43920ba660b8e195b43a8ee136a2",
"created_at": 1717176454,
"kind": 1,
"tags": [
[
"e",
"049402ddc8f71dd3b42904ddf4bab9a6c15617886768b8df3ee068b56d40cda3",
"",
"root"
],
[
"e",
"ad4898fe9cf8937b0149f62eaa7d658a3b3f88ee4e4422f275f7e81b4aac04b1",
"",
"reply"
],
[
"proxy",
"https://mastodon.derg.nz/@anthropy/112536876091853884",
"web"
],
[
"p",
"e6da4b3c3bae782bfec1f845f8e41da3a15b43920ba660b8e195b43a8ee136a2"
],
[
"p",
"247b8fb290fcaea56f5ebef89944a895d05854bfa0694cd166b46040f22fb57c"
],
[
"proxy",
"https://mastodon.derg.nz/users/anthropy/statuses/112536876091853884",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.derg.nz/users/anthropy/statuses/112536876091853884",
"pink.momostr"
]
],
"content": "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:\ndevice = torch::cuda::is_available() ? \"cuda\" : \"cpu\"",
"sig": "e361cd0a72d875873114246c3736f3b534e695943aedcb6b791f8de73705776421de54090fcb81dd80ccedc25b3338deefccbac82c652fca8b4b54f020953096"
}