tritium demo conv2d
You (or your agent) write Pseudocode (Tritium token @tritium).
Tritium CLI (or HTTPS) converts it to Python, C, or Rust.
Install: see help.
Code: python · c · rust
2D convolution / CNN block → Python / C / Rust $ NAME='algo.conv2d_f' $ tritium generate "$NAME" --lang python $ tritium generate "$NAME" --lang c $ tritium generate "$NAME" --lang rust # NAMED $ PSEUDO='fn conv2d(image, kernel): y = conv2d_f(image, kernel) return y' $ tritium -c "$PSEUDO" --lang python $ tritium -c "$PSEUDO" --lang c $ tritium -c "$PSEUDO" --lang rust # UNNAMED $ PSEUDO='fn convolve2d(image, kernel): patches = im2col_f(image) scores = conv2d_f(patches, kernel) y = relu(scores) return y' $ tritium -c "$PSEUDO" --lang python $ tritium -c "$PSEUDO" --lang c $ tritium -c "$PSEUDO" --lang rust $ NAME='im2col_f∘conv2d_f∘relu' $ tritium generate "$NAME" --lang python $ tritium generate "$NAME" --lang c $ tritium generate "$NAME" --lang rust → python.html → c.html → rust.html usage: completion_tokens=0