Learn R Programming

einops (version 0.2.1)

get_backend: Main function to detect and return backend

Description

Main function to detect and return backend

Usage

get_backend(tensor)

Value

An instance of a EinopsBackend() class. Every returned object is a singleton, so the same object will be returned for the same tensor type.

Arguments

tensor

any supported tensor-like object