Skip to content

MLArray not support slice subscript #2

Description

@annidy
X_train_data = [[10, 100],
                [20, 150],
                [30, 120]]

X_train = MLArray(X_train_data)
print(X_train[:, 0])

this will output:

MLArray(shape=(2,),
data=[Value(data=10, grad=0), Value(data=100, grad=0)])

but in numpy, output will be:

array([10, 20, 30])

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions