clab / clab/dynet

Need more clear documentation regarding cg.backward() and sgd.update() connection

Open
#609 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
3.4k
Forks
701
PR merge metrics
No merged PRs in 30d

Description

If I renew the computation graph and perform cg.forward() and cg.backward() after each sentence but perform the sgd.update() after say 10 sentences. Will the update be according to all of the sentences or just the last one i.e. are the gradients computed from the backward() step stored somewhere else or are they dependent on the computation graph?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.