Skip to main content

42 posts tagged with "TensorFlow"

TensorFlow, Google's Open-Source Library for Building, Training and Deploying Machine-Learning Models

View All Tags

How to Index and Slice a Tensor in TensorFlow

· 5 min read
Jagdish Kumawat
Founder @ Dewiride

Getting one pixel out of a photo, one column out of a table or the first half of a batch all use the same tool: square brackets after the tensor. TensorFlow follows Python's rules for lists, with one index per axis. This guide picks five different pieces out of a small table in TensorFlow 2.22.0.