9587d62e956d178220d345ed16cab42263d8e971,qucumber/nn_states/complex_wavefunction.py,ComplexWaveFunction,__init__,#ComplexWaveFunction#Any#Any#Any#Any#,44
Before Change
self.unitary_dict = unitary_dict if unitary_dict else unitaries.create_dict()
self.unitary_dict = {
k: v.to(device=self.device) for k, v in self.unitary_dict.items()
}
@property
After Change
:type module: qucumber.rbm.BinaryRBM
_rbm_am = None
_rbm_ph = None
_device = None
def __init__(
self, num_visible, num_ hidden=None, unitary_dict=None, gpu=True, module=None
):
if gpu and torch.cuda.is_available():
warnings.warn(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: PIQuIL/QuCumber
Commit Name: 9587d62e956d178220d345ed16cab42263d8e971
Time: 2019-06-28
Author: emerali@users.noreply.github.com
File Name: qucumber/nn_states/complex_wavefunction.py
Class Name: ComplexWaveFunction
Method Name: __init__
Project Name: pytorch/examples
Commit Name: 9f50c649be4171976cab7f08e6f853974d334558
Time: 2020-03-20
Author: rvarm1@fb.com
File Name: distributed/rpc/parameter_server/rpc_param_server.py
Class Name:
Method Name: get_accuracy
Project Name: ikostrikov/pytorch-a2c-ppo-acktr
Commit Name: e7aa3e58259455f5ffd241082c4ddcd511a858fb
Time: 2018-09-17
Author: meinhardt.tim@gmail.com
File Name: envs.py
Class Name: VecPyTorchFrameStack
Method Name: __init__