2692f696e534b05bdbbb40e725018e6e3287f969,matchzoo/layers/matching_layer.py,MatchingLayer,build,#MatchingLayer#Any#,42
Before Change
"on a list of 2 inputs.")
self.shape1 = input_shape[0]
self.shape2 = input_shape[1]
if self.shape1[0] != self.shape2[0]:
raise ValueError(
"Incompatible dimensions "
"{} != {}. Layer shapes: {}, {}.".format(self.shape1[0],
self.shape2[0],
self.shape1,
self.shape2))
if self.shape1[2] != self.shape2[2]:
raise ValueError(
"Incompatible dimensions "
"{} != {}. Layer shapes: {}, {}.".format(self.shape1[2],
self.shape2[2],
self.shape1,
self.shape2))
def call(self, inputs: list) -> typing.Any:
The computation logic of MatchingLayer.
After Change
"on a list of 2 inputs.")
self._shape1 = input_shape[0]
self._shape2 = input_shape[1]
for idx in 0, 2:
if self._shape1[idx] != self._shape2[idx]:
raise ValueError(
"Incompatible dimensions: "
f"{self._shape1[idx]} != {self._shape2[idx]}."
f"Layer shapes: {self._shape1}, {self._shape2}."
)
def call(self, inputs: list, **kwargs) -> typing.Any:
The computation logic of MatchingLayer.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: NTMC-Community/MatchZoo
Commit Name: 2692f696e534b05bdbbb40e725018e6e3287f969
Time: 2018-12-24
Author: i@uduse.com
File Name: matchzoo/layers/matching_layer.py
Class Name: MatchingLayer
Method Name: build
Project Name: ray-project/ray
Commit Name: 1d532d1cb8b829bdf7055a22c206032ca0b72e46
Time: 2020-04-02
Author: rkooo567@gmail.com
File Name: python/ray/dashboard/metrics_exporter/schema.py
Class Name: BaseModel
Method Name: parse_obj
Project Name: chainer/chainercv
Commit Name: 1cd87b67822c94c49d30ce1eabce792b3db7c272
Time: 2017-06-14
Author: yuyuniitani@gmail.com
File Name: chainercv/links/model/vgg/vgg.py
Class Name: VGG16Layers
Method Name: __init__