MCPcopy Create free account
hub / github.com/RightNow-AI/autokernel / _output_shape_str

Function _output_shape_str

verify.py:964–970  ·  view source on GitHub ↗

Get shape string from model output.

(output: Any)

Source from the content-addressed store, hash-verified

962
963
964def _output_shape_str(output: Any) -> str:
965 """Get shape string from model output."""
966 try:
967 t = extract_tensor(output)
968 return str(list(t.shape))
969 except Exception:
970 return "unknown"
971
972
973# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

extract_tensorFunction · 0.85

Tested by

no test coverage detected