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:
- E (
TensorEngine): The first engine. - F (
TensorEngine): The second engine.
Returns:
Bool: True when both engines have the same base type name.