msdnet.operations module¶
Module implementing network operations on CPU.
-
msdnet.operations.
cfloatp
¶ alias of
msdnet.operations.LP_c_float
-
msdnet.operations.
cdoublep
¶ alias of
msdnet.operations.LP_c_double
-
msdnet.operations.
cintp
¶ alias of
msdnet.operations.LP_c_int
-
class
msdnet.operations.
ImageData
(shape, dl, nin)[source]¶ Bases:
object
Object that represents a set of 2D images on CPU.
- Parameters
shape – total shape of all images
dl – list of dilations in the network
nin – number of input images of network
-
fill
(val, start=None, end=None)[source]¶ Set image data to single scalar value.
- Parameters
val – scalar value
-
add
(val, i)[source]¶ Add scalar to single image.
- Parameters
val – scalar to add
i – index of image to add value to
-
mult
(val, i)[source]¶ Multiply single image with value.
- Parameters
val – value
i – index of image to multiply
-
forw_conv
(i, outidx, dl)[source]¶ Perform forward convolutions
- Parameters
i – image index to compute
outidx – image index to write output to
dl – dilation list
-
back_conv
(outidx, dl)[source]¶ Perform backward convolutions
- Parameters
outidx – image index to write output to
dl – dilation list
-
property
shape
¶