Exemplo n.º 1
0
def parse_dsl(filename: str):
    return jl_DSL.parse_dsl(filename)

    buffer=[] 
    with open(filename) as f:
        for line in f:
            buffer.append(line)
    
    return parse_dsl(buffer)
Exemplo n.º 2
0
 def __init__(self, name, target, bond_index, bond_range):
     self._jl = jl_DSL.ViewCommand(name, target, bond_index, bond_range)
Exemplo n.º 3
0
 def __init__(self, num_outputs):
     self._jl = jl_DSL.OutputsCommand(num_outputs)
Exemplo n.º 4
0
 def __init__(self, output_name, output_idxs, left_name, left_idxs, right_name, right_idxs):
     self._jl = jl_DSL.NconCommand(output_name, output_idxs, left_name, left_idxs, right_name, right_idxs)
Exemplo n.º 5
0
 def __init__(self, name, dims):
     self._jl = jl_DSL.PermuteCommand(name, label)
Exemplo n.º 6
0
 def __init__(self, name, dims):
     self._jl = jl_DSL.ReshapeCommand(name, dims)
Exemplo n.º 7
0
 def __init__(self, name):
     self._jl = jl_DSL.DeleteCommand(name)
Exemplo n.º 8
0
 def __init__(self, name, label):
     self._jl = jl_DSL.SaveCommand(name, label)