a277fd89980f7a4647d0a17548aba7df37a5aefb,pyprob/nn/inference_network_feedforward.py,InferenceNetworkFeedForward,_embed_observe,#InferenceNetworkFeedForward#Any#,154
Before Change
def _embed_observe(self, observe=None):
if observe is None:
raise ValueError("All observes in observe_embeddings are needed to initialize a new trace.")
return self._layer_observe_embedding_final(torch.cat([layer.forward(observe[name]).view(-1) for name, layer in self._layer_observe_embedding.items()]))
def infer_trace_init(self, observe=None):
self._infer_observe = observe
After Change
super().to(device=device, *args, *kwargs)
def _embed_observe(self, traces=None):
embedding = []
for name, layer in self._layer_observe_embedding.items():
values = torch.stack([trace.named_variables[name].value for trace in traces]).view(len(traces), -1)
embedding.append(layer(values))
embedding = torch.cat(embedding, dim=1)
embedding = self._layer_observe_embedding_final(embedding)
return embedding
def infer_trace_init(self, observe=None):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: pyprob/pyprob
Commit Name: a277fd89980f7a4647d0a17548aba7df37a5aefb
Time: 2018-09-19
Author: atilimgunes.baydin@gmail.com
File Name: pyprob/nn/inference_network_feedforward.py
Class Name: InferenceNetworkFeedForward
Method Name: _embed_observe
Project Name: mozilla/TTS
Commit Name: 7d5bcd6ca4486e1f33d6de2533f56861d197a4bd
Time: 2018-02-08
Author: egolge@mozilla.com
File Name: layers/tacotron.py
Class Name: CBHG
Method Name: forward
Project Name: pyprob/pyprob
Commit Name: a277fd89980f7a4647d0a17548aba7df37a5aefb
Time: 2018-09-19
Author: atilimgunes.baydin@gmail.com
File Name: pyprob/nn/inference_network_feedforward.py
Class Name: InferenceNetworkFeedForward
Method Name: _embed_observe
Project Name: interactiveaudiolab/nussl
Commit Name: fa6f47e7aee228226421c52e61cce4e1ab4cc099
Time: 2020-03-15
Author: prem@u.northwestern.edu
File Name: tests/ml/test_loss.py
Class Name:
Method Name: test_permutation_invariant_loss_tf