Convolutional GRU for PyTorch.
bionick87 / convgrucell-pytorch Goto Github PK
View Code? Open in Web Editor NEWConvolution GRU cell in PyTorch
Convolution GRU cell in PyTorch
Convolutional GRU for PyTorch.
Shouldn't the kernel size be equal to kernel_size. It seems to be explicitly assigned to 3. Just commenting because I am using part of your code for a different project, not replicating the paper.
for e in xrange(max_epoch): for time in xrange(num_seqs): h_next = model(input_gru[time], None) err += MSE_criterion(h_next [0], target_gru[time]) print(err.data[0])
It seems to me that you assume that previous states are all None. But after time step 1, the previous state is now h_t-1 so I think the code should be like below:
prev_state = None for e in xrange(max_epoch): for time in xrange(num_seqs): h_next = model(input_gru[time], prev_state) err += MSE_criterion(h_next [0], target_gru[time]) prev_state = h_next print(err.data[0])
In your implementation part.
In your implementation process, Equation (8) uses the following code:
next_h = torch.mul(update_gate,hidden) + (1-update_gate)*ct
According to the original calculation process, it should be the following code organization:
next_h = torch.mul(update_gate,ct) + (1-update_gate)*hidden
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.