Hi i am new to Deep learning.
I am trying to convert a Keras code into pytorch just wanted to understand what are pytorch equivalent for the following 4 lines of code.
from tensorflow.keras.layers import Embedding, LSTM, Dense
from tensorflow.keras.models import Model
from tensorflow.keras.preprocessing.text import Tokenizer
from tensorflow.keras.preprocessing.sequence import pad_sequences

for

from tensorflow.keras.layers import Embedding, LSTM, Dense

i am trying:
from torch.nn import Embedding, LSTM, Linear


from tensorflow.keras.preprocessing.text import Tokenizer
i am trying:
from torchtext.data import get_tokenizer


from tensorflow.keras.preprocessing.sequence import pad_sequences
i am thinking
from torch.nn.utils.rnn import pad_sequence


from tensorflow.keras.models import Model


could not figure out anything for this
the original code i am trying to convert is mentioned here:

  

      github.com
  

  
    sunilbelde/neural-machine-translation-english-to-hindi-telugu/blob/main/NeuralMachineTranslation_eng_hindi.ipynb 1


    {
  "nbformat": 4,
  "nbformat_minor": 0,
  "metadata": {
    "colab": {
      "name": "NeuralMachineTranslation_eng_hindi.ipynb",
      "provenance": [],
      "collapsed_sections": []
    },
    "kernelspec": {
      "name": "python3",
      "display_name": "Python 3"
    },
    "language_info": {
      "name": "python"
    },
    "accelerator": "GPU"
  },
  "cells": [
    {



  This file has been truncated. show original