GithubHelp home page GithubHelp logo

Comments (4)

lkrisz87 avatar lkrisz87 commented on June 12, 2024

torch version: '2.0.1+cu118'

from machine-learning-book.

rasbt avatar rasbt commented on June 12, 2024

Hi there, thanks for posting this issue. I think this is probably a PyTorch 2.1 issue -- it recently worked with 1.10 (~3 months ago when it was last updated):
https://github.com/rasbt/machine-learning-book/blob/main/ch15/ch15_part2.ipynb

from machine-learning-book.

lkrisz87 avatar lkrisz87 commented on June 12, 2024

Okay, it seems like I was mistaken here. I've assumed that the entire batch is going to get feeded to the model, and not trained character by character from the sequence. And I've tried to make the model eat the entire batch, but of course it didn't work because it was design to get batch x 1 char. It drove me crazy and I didn't read through the entire chapter...

from machine-learning-book.

rasbt avatar rasbt commented on June 12, 2024

Glad this got resolved :)

from machine-learning-book.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.