16
16
17
17
import numpy as np
18
18
19
- from pytensor .gradient import DisconnectedType
20
19
from pytensor .graph import Apply , Op
21
20
from pytensor .graph .features import AlreadyThere , Feature
22
21
from pytensor .graph .fg import FunctionGraph
@@ -44,15 +43,9 @@ def make_node(self, tran_value: TensorVariable, value: TensorVariable):
44
43
def perform (self , node , inputs , outputs ):
45
44
raise NotImplementedError ("These `Op`s should be removed from graphs used for computation." )
46
45
47
- def connection_pattern (self , node ):
48
- return [[True ], [False ]]
49
-
50
46
def infer_shape (self , fgraph , node , input_shapes ):
51
47
return [input_shapes [0 ]]
52
48
53
- def grad (self , args , g_outs ):
54
- return g_outs [0 ], DisconnectedType ()()
55
-
56
49
57
50
transformed_value = TransformedValue ()
58
51
@@ -79,9 +72,6 @@ def perform(self, node, inputs, outputs):
79
72
"`TransformedRV` `Op`s should be removed from graphs used for computation."
80
73
)
81
74
82
- def connection_pattern (self , node ):
83
- return [[True ] for _ in node .outputs ]
84
-
85
75
def infer_shape (self , fgraph , node , input_shapes ):
86
76
return input_shapes
87
77
0 commit comments