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 function

same_engine

def same_engine[E: TensorEngine, F: TensorEngine]() -> Bool

Returns whether two engines are one engine family.

A view's engine is its parent's OffsetResultType, which generic code cannot fold back to the parent's type, so atoms compare families rather than types.

Parameters:

Returns:

Bool: True when both engines have the same base type name.

Was this page helpful?