1

I want to access a 4d numpy.ndarray( don't know exactly how and if it differs from a tensor). i want the 3d array (cube when) the 4th dimension has the index 1 for example.

i tried something like

 array[:][:][:][1] 

but no avail

1 Answer 1

2

Should just be:

array[:, :, :, 1]
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.