-
|
I usually use the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
They only slightly differ. I'm not really sure how you implement it via x = dataset.data.x[100:150] # x holds the same underlying memory as dataset.data.x |
Beta Was this translation helpful? Give feedback.
They only slightly differ. I'm not really sure how you implement it via
batch, butsliceslets you access individual examples inO(1). Furthermore, since data is only sliced, it will not need to duplicate the output data in memory: