Constant#

class vulkpy.nn.Constant#

Bases: Initializer

Constant Initializer

Methods Summary

__call__(gpu, shape)

Initialize new parameters

Methods Documentation

__call__(gpu: GPU, shape: Iterable[int]) Array#

Initialize new parameters

Parameters:
  • gpu (vulkpy.GPU) – GPU

  • shape (iterable of ints) – Parameter shape

__init__(value: float)#

Initialize Constant Initializer

Parameters:

value (float) – Constant value