a0021cb982c25923a75cd3a1eeaee00058f2cdbb,pixyz/distributions/distributions.py,DistGraph,sample,#DistGraph#Any#Any#Any#Any#Any#,132
Before Change
values = get_dict_values(x_dict, self.input_var, return_dict=True)
for var, dist in self.node_distributions(sorted=True):
if any(cond not in values for cond in self.graph.pred[var]):
raise ValueError("lack of some condition variable")
input_dict = self._get_local_input_dict(values, self.graph.pred[var], var)
option = sample_option
option.update(self.node_option(var))
values[var] = self._get_local_output_value(var, dist.sample(input_dict, **option))
result_dict = delete_dict_values(values, self.marginalize_list)
if return_all:
After Change
values = get_dict_values(x_dict, self.input_var, return_dict=True)
for factor in self.factors(sorted=True):
sample = self._wrapped_sample(factor, values, sample_option)
values.update(sample)
result_dict = delete_dict_values(values, self.marginalize_list)
if return_all:
output_dict = dict(delete_dict_values(x_dict, self.input_var))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: masa-su/pixyz
Commit Name: a0021cb982c25923a75cd3a1eeaee00058f2cdbb
Time: 2020-07-27
Author: kaneko@weblab.t.u-tokyo.ac.jp
File Name: pixyz/distributions/distributions.py
Class Name: DistGraph
Method Name: sample
Project Name: tensorflow/tpu
Commit Name: 8055210d965130ded71d06ea4cc59c2e82e65b15
Time: 2019-04-09
Author: jysohn@google.com
File Name: models/experimental/mask_rcnn/mask_rcnn_model.py
Class Name:
Method Name: _model_fn
Project Name: apache/incubator-tvm
Commit Name: e63e08febd682f40a536075998a6839bccccd3c6
Time: 2020-04-04
Author: tqchen@users.noreply.github.com
File Name: python/tvm/driver/build_module.py
Class Name:
Method Name: build