330154d9f5344f0a6ab39b3a313626c4b574dbbd,kronecker.py,,determinant,#Any#,6

Before Change


  for core_idx in range(kron_a.ndims()):
    core = cores[core_idx]
    core_det = tf.matrix_determinant(core[0, :, :, 0])
    core_pow = pows / core.get_shape()[1].value

    det *= tf.pow(core_det, core_pow)
  return det

After Change


      raise ValueError("The argument should be a Kronecker product of square "
                       "matrices (tt-cores must be square)")
      
  pows = tf.cast(tf.reduce_prod(i_shapes), kron_a.dtype)
  cores = kron_a.tt_cores
  det = 1
  for core_idx in range(kron_a.ndims()):
    core = cores[core_idx]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Bihaqo/t3f
Commit Name: 330154d9f5344f0a6ab39b3a313626c4b574dbbd
Time: 2017-02-11
Author: izmailovpavel@gmail.com
File Name: kronecker.py
Class Name:
Method Name: determinant


Project Name: onnx/onnx-tensorflow
Commit Name: c63d4351c7752a769cdc9a1bfcf79ffd140e0e6a
Time: 2020-10-29
Author: wtsang@us.ibm.com
File Name: onnx_tf/handlers/backend/unpool_mixin.py
Class Name: UnpoolMixin
Method Name: _unpool


Project Name: Bihaqo/t3f
Commit Name: 40db92599e7607b97f5b52a4d6a90bef9612c317
Time: 2017-02-11
Author: izmailovpavel@gmail.com
File Name: kronecker.py
Class Name:
Method Name: slog_determinant