From 48b6ad4a5505c19a5a832ec014f94a3ea6cc036b Mon Sep 17 00:00:00 2001 From: Vincent Lequertier Date: Wed, 7 Feb 2018 20:49:46 +0100 Subject: [PATCH] Replace 'creator' with 'grad_fn' and 'previous_functions' by 'next_functions' --- deeplearning2/pytorch-tut.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deeplearning2/pytorch-tut.ipynb b/deeplearning2/pytorch-tut.ipynb index 4e8282fe0..2af51bd06 100644 --- a/deeplearning2/pytorch-tut.ipynb +++ b/deeplearning2/pytorch-tut.ipynb @@ -576,7 +576,7 @@ } ], "source": [ - "y.creator" + "y.grad_fn" ] }, { @@ -650,8 +650,8 @@ "source": [ "# You never have to look at these in practice - this is just showing how the\n", "# computation graph is stored\n", - "print(out.creator.previous_functions[0][0])\n", - "print(out.creator.previous_functions[0][0].previous_functions[0][0])" + "print(out.grad_fn.next_functions[0][0])\n", + "print(out.grad_fn.next_functions[0][0].next_functions[0][0])" ] }, {