Skip to main content
Log in

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.