push
github
5 of 6 new or added lines in 2 files covered. (83.33%)
4117 existing lines in 34 files now uncovered.11 of 5399 relevant lines covered (0.2%)
0.01 hits per line
1 |
# -*- coding: utf-8 -*-
|
|
UNCOV
2
|
from ....compat import Apply, tt |
× |
UNCOV
3
|
from .base_op import LimbDarkBaseOp |
× |
UNCOV
4
|
from .get_cl_rev import GetClRevOp |
× |
5 |
|
|
UNCOV
6
|
__all__ = ["GetClOp"]
|
× |
7 |
|
|
8 |
|
|
UNCOV
9
|
class GetClOp(LimbDarkBaseOp): |
× |
10 |
|
|
UNCOV
11
|
__props__ = () |
× |
UNCOV
12
|
func_file = "./get_cl.cc"
|
× |
UNCOV
13
|
func_name = "APPLY_SPECIFIC(get_cl)"
|
× |
UNCOV
14
|
num_input = 1
|
× |
15 |
|
|
UNCOV
16
|
def __init__(self): |
× |
UNCOV
17
|
self.grad_op = GetClRevOp()
|
× |
UNCOV
18
|
super(GetClOp, self).__init__() |
× |
19 |
|
|
UNCOV
20
|
def make_node(self, arg): |
× |
UNCOV
21
|
return Apply(self, [tt.as_tensor_variable(arg)], [arg.type()]) |
× |
22 |
|
|
UNCOV
23
|
def infer_shape(self, *args): |
× |
UNCOV
24
|
shapes = args[-1]
|
× |
UNCOV
25
|
return (shapes[0],) |
× |
26 |
|
|
UNCOV
27
|
def grad(self, inputs, gradients): |
× |
UNCOV
28
|
return (self.grad_op(gradients[0]),) |
× |
29 |
|
|
30 |
def R_op(self, inputs, eval_points): |
|
31 |
if eval_points[0] is None: |
|
32 |
return eval_points
|
|
33 |
return self.grad(inputs, eval_points) |