Table Of Contents
Table Of Contents

Symbol.__getitem__

Symbol.__getitem__(index)[source]

x.__getitem__(i) <=> x[i]

Returns a sliced view of the input symbol.

Example

>>> a = mx.sym.var('a')
>>> a.__getitem__(0)
<Symbol a>
>>> a[0]
<Symbol a>
Parameters:index (int or str) – Indexing key