IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo trait

TileCopier

Trait for copying a TileTensor from one address space to another.

Implementors move a source TileTensor in src_address_space into a destination TileTensor in dst_address_space. The two address spaces are advertised as compile-time fields on the implementor so callers can introspect what a given copier is wired to do.

Implemented traits​

AnyType

comptime members​

dst_address_space​

comptime dst_address_space

Destination AddressSpace the copier writes to.

src_address_space​

comptime src_address_space

Source AddressSpace the copier reads from.

Required methods​

copy​

def copy(self, dst: TileTensor[Storage=dst.Storage, address_space=Self.dst_address_space, linear_idx_type=dst.linear_idx_type], src: TileTensor[Storage=src.Storage, address_space=Self.src_address_space, linear_idx_type=src.linear_idx_type])

Copies src into dst.

Both tensors must share the same element_size so the copy operates on matching logical element widths.

Args:

Was this page helpful?