The Variable API has been deprecated: Variables are no longer necessary to use autograd with tensors. So please update code and fix this problem..