I am not sure that but the most preferred way is to do with tensor slices. Follow this tutorial to get the overall insight.

  

      github.com
  

  
    sayannath/American-Sign-Language-Detection/blob/master/notebook/ASL_MobileNetV2.ipynb 4


    {
  "nbformat": 4,
  "nbformat_minor": 0,
  "metadata": {
    "colab": {
      "name": "ASL_MobileNetV2.ipynb",
      "provenance": [],
      "collapsed_sections": [],
      "toc_visible": true
    },
    "kernelspec": {
      "display_name": "Python 3",
      "name": "python3"
    },
    "accelerator": "GPU"
  },
  "cells": [
    {
      "cell_type": "markdown",
      "metadata": {



  This file has been truncated. show original