neon.layers.layer.CompoundLayer

class neon.layers.layer.CompoundLayer(bias=None, batch_norm=False, activation=None, name=None)[source]

Bases: list

Base class for macro layers.

__init__(bias=None, batch_norm=False, activation=None, name=None)[source]

Methods

__init__([bias, batch_norm, activation, name])
add_postfilter_layers()
append((object) -> None – append object to end)
clear(() -> None – remove all items from L)
copy(() -> list – a shallow copy of L)
count(…)
extend(…)
index((value, [start, …) Raises ValueError if the value is not present.
init_base_name()
insert L.insert(index, object) – insert object before index
pop(…) Raises IndexError if list is empty or index is out of range.
remove(…) Raises ValueError if the value is not present.
reverse L.reverse() – reverse IN PLACE
sort((key=None[, reverse])
add_postfilter_layers()[source]
append(object) → None -- append object to end
clear() → None -- remove all items from L
copy() → list -- a shallow copy of L
count(value) → integer -- return number of occurrences of value
extend(iterable) → None -- extend list by appending elements from the iterable
index(value[, start[, stop]]) → integer -- return first index of value.

Raises ValueError if the value is not present.

init_base_name()[source]
insert()

L.insert(index, object) – insert object before index

pop([index]) → item -- remove and return item at index (default last).

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

remove(value) → None -- remove first occurrence of value.

Raises ValueError if the value is not present.

reverse()

L.reverse() – reverse IN PLACE

sort(key=None, reverse=False) → None -- stable sort *IN PLACE*