pyprobound.containers.TParameterList

class TParameterList(values=None)

Bases: Module, MutableSequence[Parameter]

Typed ParameterList.

See https://github.com/pytorch/pytorch/pull/89135.

__init__(values=None)

Initialize internal Module state, shared by both nn.Module and ScriptModule.

Methods

append(value)

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

clear()

count(value)

extend(values)

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

forward(*input)

Define the computation performed at every call.

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

Raises ValueError if the value is not present.

insert(index, value)

Insert value before index.

pop([index])

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

remove(value)

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

reverse()

S.reverse() -- reverse IN PLACE

Non-Inherited Members

insert(index, value)

Insert value before index.

Return type:

None