Ejemplo n.º 1
0
 def __call__(self, inputs, output, size_dict, memory_limit=None):
     return ssa_to_linear(self.get_ssa_path(inputs, output, size_dict))
Ejemplo n.º 2
0
def test_linear_vs_ssa(equation):
    views = helpers.build_views(equation)
    linear_path, _ = contract_path(equation, *views)
    ssa_path = linear_to_ssa(linear_path)
    linear_path2 = ssa_to_linear(ssa_path)
    assert linear_path2 == linear_path
Ejemplo n.º 3
0
def test_linear_vs_ssa(equation):
    views = helpers.build_views(equation)
    linear_path, _ = contract_path(equation, *views)
    ssa_path = linear_to_ssa(linear_path)
    linear_path2 = ssa_to_linear(ssa_path)
    assert linear_path2 == linear_path