def __call__(self, inputs, output, size_dict, memory_limit=None): return ssa_to_linear(self.get_ssa_path(inputs, output, size_dict))
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
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