Mojo function
trace_slice_arg
trace_slice_arg(name: String, buf: ManagedTensorSlice[io_spec, static_spec=static_spec]) -> String
Helper to stringify the type and shape of a kernel argument for tracing.
Args:
- name (
String
): The name of the argument. - buf (
ManagedTensorSlice[io_spec, static_spec=static_spec]
): The NDBuffer to trace.
Returns:
A string representation of the buffer with its shape and data type.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!