github.com
  
  
    spro/practical-pytorch/blob/master/seq2seq-translation/seq2seq-translation-batched.ipynb 11
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "![](https://i.imgur.com/eBRPvWB.png)\n",
    "\n",
    "# Practical PyTorch: Translation with a Sequence to Sequence Network and Attention\n",
    "\n",
    "In this project we will be teaching a neural network to translate from French to English.\n",
    "\n",
    "```\n",
    "[KEY: > input, = target, < output]\n",
    "\n",
    "> il est en train de peindre un tableau .\n",
    "= he is painting a picture .\n",
    "< he is painting a picture .\n",
    "\n",
    "> pourquoi ne pas essayer ce vin delicieux ?\n",


  This file has been truncated. show original

  
  
    
    
  
  


In seq2seq-translation-batched.ipynb, the import of masked_cross_entropy seems not worked.
When I execute to this line, an error occured that
Traceback (most recent call last):
  File "seq2seq-translation-batched.py", line 83, in <module>
    from masked_cross_entropy import *
ImportError: No module named masked_cross_entropy

But import torch seems fine.
And my PyTorch version is
>>> torch.__version__
'0.3.0.post4'

What can I do? I’ve not found any thing about this import issue.