74a57dacd0368ea835009e13a92c950943d1c503,test/color/test_adjust.py,TestAdjustBrightness,test_factor_tensor,#TestAdjustBrightness#,294
Before Change
[[.5, .5],
[.5, .5]]]) // 4x2x2
expected = torch.tensor([[[0., 0.],
[0., 0.]],
[[.5, .5],
[.5, .5]],
[[.375, .375],
[.375, .375]],
[[1., 1.],
[1., 1.]]]) // 4x2x2
factor = torch.tensor([0, 1, 1.5, 2])
f = kornia.color.AdjustBrightness(factor)
After Change
[[.5, .5],
[.5, .5]]]) // 4x2x2
expected = torch.ones_like(data)
factor = torch.tensor([0, 0.5, 0.75, 2])
f = kornia.color.AdjustBrightness(factor)
assert_allclose(f(data), expected)
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 4
Instances
Project Name: arraiy/torchgeometry
Commit Name: 74a57dacd0368ea835009e13a92c950943d1c503
Time: 2019-10-30
Author: priba@cvc.uab.cat
File Name: test/color/test_adjust.py
Class Name: TestAdjustBrightness
Method Name: test_factor_tensor
Project Name: facebookresearch/Horizon
Commit Name: 9cf8f6cdf6a2008843cb37da6e34b8d10353b0bf
Time: 2019-12-12
Author: kittipat@fb.com
File Name: ml/rl/preprocessing/sparse_to_dense.py
Class Name: PythonSparseToDenseProcessor
Method Name: process
Project Name: asyml/texar
Commit Name: c8523b2dc735a1b82ca6170e6ca349defe9f77fc
Time: 2017-11-17
Author: shore@pku.edu.cn
File Name: examples/transformer.py
Class Name:
Method Name:
Project Name: tensorflow/ranking
Commit Name: 6bf3f51cd0a312da842157665663c2dad9983248
Time: 2021-01-29
Author: xuanhui@google.com
File Name: tensorflow_ranking/python/losses_impl.py
Class Name: ClickEMLoss
Method Name: _compute_latent_prob
Project Name: arraiy/torchgeometry
Commit Name: fc51481f6bb0bbde460888ae1941ab8482582b34
Time: 2019-10-08
Author: diegovd0296@gmail.com
File Name: test/color/test_normalize.py
Class Name: TestNormalize
Method Name: test_broadcast_normalize
Project Name: RasaHQ/rasa
Commit Name: d4a2f656470e3190f8e877139455abcff1ad7cdb
Time: 2018-09-28
Author: mr.voov@gmail.com
File Name: rasa_core/policies/tf_utils.py
Class Name: TimedNTM
Method Name: __call__
Project Name: HyperGAN/HyperGAN
Commit Name: 2a3b31417b4c43cffcaf5d387ce07b353c53982b
Time: 2016-12-15
Author: mikkel@255bits.com
File Name: lib/encoders/random_combo_encoder.py
Class Name:
Method Name: encode