jaberg/theano_workspace
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
theano_workspace ================ Workspace idea for theano. Workspaces are meant to provide a better alternative to shared variables. Should help with serialization and general interface usability, and enable more powerful optimizations. ```python x = tensor.vector('x') y = tensor.vector('y') ws = Workspace() ws[x] = [1, 2] ws[y] = [3, 4] ws.compile_update('f', [ (x, 2 * x), (y, x + y)]) assert np.allclose([ws[x], ws[y]],[[1, 2], [3, 4]]) # compute stuff ws.f() assert np.allclose([ws[x], ws[y]],[[2, 4], [4, 6]]) ```
About
workspace idea for theano
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published