opto.trace.containers.Seq

opto.trace.containers.Seq#

class Seq[source]#

Seq is defined as having a length and an index. Python’s list/tuple will be converted to Seq

Methods

append(item)

S.append(value) -- append value to the end of the sequence

clear()

copy()

count(value)

extend(other)

S.extend(iterable) -- extend sequence by appending elements from the iterable

index(value, [start, [stop]])

Raises ValueError if the value is not present.

insert(i, item)

S.insert(index, value) -- insert value before index

parameters()

Return a flattned list of all the parameters in the model's parameters_dict, useful for optimization.

parameters_dict()

Return a dictionary of all the parameters in the model, including both trainable and non-trainable parameters.

pop([index])

Raise IndexError if list is empty or index is out of range.

remove(item)

S.remove(value) -- remove first occurrence of value.

reverse()

S.reverse() -- reverse IN PLACE

sort(*args, **kwds)

__init__(*args)[source]#
__new__(**kwargs)#