a347c747df8302acc0007a26f23ecf3355a5bef9,torch/distributions/transforms.py,ComposeTransform,domain,#ComposeTransform#,278
Before Change
def domain(self):
if not self.parts:
return constraints.real
return self.parts[0].domain
@constraints.dependent_property
def codomain(self):
if not self.parts:
After Change
return constraints.real
domain = self.parts[0].domain
// Adjust event_dim to be maximum among all parts.
event_dim = self.parts[-1].codomain.event_dim
for part in reversed(self.parts):
event_dim += part.domain.event_dim - part.codomain.event_dim
event_dim = max(event_dim, part.domain.event_dim)
assert event_dim >= domain.event_dim
if event_dim > domain.event_dim:
domain = constraints.independent(domain, event_dim - domain.event_dim)
return domain
@constraints.dependent_property(is_discrete=False)
def codomain(self):
if not self.parts:
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 5
Instances Project Name: pytorch/pytorch
Commit Name: a347c747df8302acc0007a26f23ecf3355a5bef9
Time: 2021-01-25
Author: fritz.obermeyer@gmail.com
File Name: torch/distributions/transforms.py
Class Name: ComposeTransform
Method Name: domain
Project Name: PyThaiNLP/pythainlp
Commit Name: f179b3419f729f78b2d2689d7007b8e650d7d853
Time: 2017-08-11
Author: wannaphong@yahoo.com
File Name: pythainlp/tokenize/longest.py
Class Name:
Method Name: segment
Project Name: onnx/onnx-tensorflow
Commit Name: 2a4e2b1b131d9a1b48d8eba5479b585bf328d3ba
Time: 2017-12-04
Author: tjingrant@gmail.com
File Name: onnx_tf/backend.py
Class Name: TensorflowBackend
Method Name: get_data_format
Project Name: sobhe/hazm
Commit Name: dcfc9a2b37116dc9adf4167633925bf9b0e5b844
Time: 2013-12-05
Author: alireza.nournia@gmail.com
File Name: hazm/BijankhanReader.py
Class Name: BijankhanReader
Method Name: _join_verb_parts
Project Name: pantsbuild/pants
Commit Name: 0a071c9e0d7827ce874c479651263dddfba9b8d0
Time: 2014-11-03
Author: benjyw@gmail.com
File Name: src/python/pants/option/arg_splitter.py
Class Name: ArgSplitter
Method Name: split_args
Project Name: RasaHQ/rasa
Commit Name: ad162c1b4127c6cab760b2c864c473137fbc42a7
Time: 2020-10-05
Author: t.wochinger@rasa.com
File Name: rasa/core/actions/forms.py
Class Name: FormAction
Method Name: is_done