1da20c693ac9f4cf345ddd795d99aa028e011ee8,model/uisrnn.py,UISRNN,__init__,#UISRNN#,49

Before Change


                                 args.rnn_depth, args.rnn_dropout,
                                 observation_dim)
      self.rnn_init_hidden = nn.Parameter(torch.zeros(1, args.rnn_hidden_size))
      self.sigma2 = nn.Parameter(sigma2 * torch.ones(observation_dim))
    self.transition_bias = transition_bias

  def save(self, filepath):
    Save the model to a file.

After Change


    self.rnn_init_hidden = nn.Parameter(
        torch.zeros(1, args.rnn_hidden_size).to(self.device))
    sigma2 = .1 if args.sigma2 is None else args.sigma2
    self.sigma2 = nn.Parameter(
        sigma2 * torch.ones(observation_dim).to(self.device))
    self.transition_bias = transition_bias

  def save(self, filepath):
    Save the model to a file.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: google/uis-rnn
Commit Name: 1da20c693ac9f4cf345ddd795d99aa028e011ee8
Time: 2018-10-25
Author: aonan@aonan.nyc.corp.google.com
File Name: model/uisrnn.py
Class Name: UISRNN
Method Name: __init__


Project Name: google/uis-rnn
Commit Name: ac1f07e722b1117642774b04d96e7174751e325c
Time: 2018-10-18
Author: aonan@aonan.nyc.corp.google.com
File Name: model/uisrnn.py
Class Name: UISRNN
Method Name: __init__