4e6f863acd500dc02e7c2a8e5a01566ac58930d9,sonnet/python/modules/conv_test.py,SharedConvTest,testPartitioners,#SharedConvTest#Any#Any#Any#,246
Before Change
self.assertEqual(type(getattr(convolution, key)),
variables.PartitionedVariable)
if isinstance(conv, snt.Transposable):
convolution_t = convolution.transpose()
self.assertEqual(convolution_t.partitioners, convolution.partitioners)
@parameterized.parameters(*itertools.product(modules,
(True, False),
(tf.float16, tf.float32)))
def testVariables(self, module_info, use_bias, dtype):
After Change
self.assertEqual(type(getattr(convolution, key)),
variables.PartitionedVariable)
try:
convolution_t = convolution.transpose()
except (AttributeError, snt.NotSupportedError):
return
self.assertEqual(convolution_t.partitioners, convolution.partitioners)
@parameterized.parameters(*itertools.product(modules,
(True, False),
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: deepmind/sonnet
Commit Name: 4e6f863acd500dc02e7c2a8e5a01566ac58930d9
Time: 2018-11-20
Author: noreply@google.com
File Name: sonnet/python/modules/conv_test.py
Class Name: SharedConvTest
Method Name: testPartitioners
Project Name: asyml/texar
Commit Name: af461df627ef660d1a71b6981dedb4e4b504ba9a
Time: 2017-09-25
Author: junxianh2@gmail.com
File Name: txtgen/modules/connectors/connectors.py
Class Name: StochasticConnector
Method Name: _build
Project Name: asyml/texar
Commit Name: b5ab872cb9ab99e62fb7d0ff138d5da9bcf08f44
Time: 2018-04-04
Author: zhitinghu@gmail.com
File Name: texar/core/optimization.py
Class Name:
Method Name: get_optimizer_fn