Lc0Net class

Inheritance

Constructors

Lc0Net(Lc0Weights w, {Device device = Device.GPU})

Properties

device Device
final
hashCode int
The hash code for this object.
no setterinherited
inputConv → _ConvGpu
final
ip1ValB Tensor
final
ip1ValWT Tensor
final
ip2ValB Tensor
final
ip2ValWT Tensor
final
policy1 → _ConvGpu
final
policyOut → _ConvGpu
final
resA List<_ConvGpu>
final
resB List<_ConvGpu>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
se List<_SEGpu?>
final
training bool
Whether this module is in training mode. Layers that behave differently between training and inference (e.g. Dropout) read this flag in their call method. Defaults to training mode.
getter/setter pairinherited
valueConv → _ConvGpu
final
w Lc0Weights
final

Methods

call(Tensor input) Lc0Output
callBatch(List<Tensor> inputs) List<Lc0Output>
Batched forward: feed B positions in one call, get B outputs.
eval() → void
Put this module (and any registered submodules) into evaluation mode.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parameters() List<Tensor>
Trainable tensors owned by this module (and its submodules).
override
submodules() List<Module>
Submodules owned by this module. Subclasses that compose other modules should override this so train() / eval() propagate. Default: empty.
inherited
toString() String
A string representation of this object.
inherited
train() → void
Put this module (and any registered submodules) into training mode.
inherited
zeroGrad() → void
Zero every parameter's gradient. Safe to call before each backward.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited