81245414e1d0cbd63c88c59f0b1cfa7666a28614,theano/gpuarray/opt.py,,local_gpu_solve,#Any#Any#Any#Any#,1990

Before Change


        return
    if op.A_structure not in MATRIX_STRUCTURES_SOLVE:
        return
    return GpuCusolverSolve(A_structure=op.A_structure)


@register_inplace()
@local_optimizer([GpuCusolverSolve], inplace=True)

After Change


def local_gpu_solve(op, context_name, inputs, outputs):
    if not cusolver_available:
        return
    if inputs[0].dtype not in ["float16", "float32"]:
        return
    if op.A_structure not in MATRIX_STRUCTURES_SOLVE:
        return
    op = GpuCusolverSolve(A_structure=op.A_structure)
    if inputs[0].dtype == "float16":
        return op(inputs[0].astype("float32"),
                  inputs[1].astype("float32")).astype("float16")
    return op


@register_inplace()
@local_optimizer([GpuCusolverSolve], inplace=True)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 18

Instances


Project Name: Theano/Theano
Commit Name: 81245414e1d0cbd63c88c59f0b1cfa7666a28614
Time: 2017-05-15
Author: nouiz@nouiz.org
File Name: theano/gpuarray/opt.py
Class Name:
Method Name: local_gpu_solve


Project Name: Theano/Theano
Commit Name: 81245414e1d0cbd63c88c59f0b1cfa7666a28614
Time: 2017-05-15
Author: nouiz@nouiz.org
File Name: theano/gpuarray/opt.py
Class Name:
Method Name: local_gpu_solve


Project Name: Theano/Theano
Commit Name: 81245414e1d0cbd63c88c59f0b1cfa7666a28614
Time: 2017-05-15
Author: nouiz@nouiz.org
File Name: theano/gpuarray/opt.py
Class Name:
Method Name: local_gpu_cholesky


Project Name: Theano/Theano
Commit Name: 81245414e1d0cbd63c88c59f0b1cfa7666a28614
Time: 2017-05-15
Author: nouiz@nouiz.org
File Name: theano/gpuarray/opt.py
Class Name:
Method Name: local_gpu_svd


Project Name: Theano/Theano
Commit Name: 81245414e1d0cbd63c88c59f0b1cfa7666a28614
Time: 2017-05-15
Author: nouiz@nouiz.org
File Name: theano/gpuarray/opt.py
Class Name:
Method Name: local_gpu_matrix_inverse