layers

package
v0.0.0-...-d606bfb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conv2D

type Conv2D struct {
	KernelSize struct {
		X int
		Y int
	}
	Depth  int
	Stride int
	// contains filtered or unexported fields
}

func (*Conv2D) Backward

func (e *Conv2D) Backward(error [][][]float64, lr float64) [][][]float64

func (*Conv2D) Forward

func (e *Conv2D) Forward(in [][][]float64) (out [][][]float64)

type FC

type FC struct {
	Out int
	// contains filtered or unexported fields
}

Fully Connected layer

func (FC) Backward

func (e FC) Backward(err [][][]float64, lr float64) [][][]float64

func (*FC) Forward

func (e *FC) Forward(in [][][]float64) (out [][][]float64)

FC Forward function

type Flatten

type Flatten struct {
	// contains filtered or unexported fields
}

Flatten layer

func (*Flatten) Backward

func (e *Flatten) Backward(err [][][]float64, float642 float64) [][][]float64

Flatten backward function

func (*Flatten) Forward

func (e *Flatten) Forward(in [][][]float64) [][][]float64

Flattern layer forward function

type TestConv

type TestConv struct {
	KernelSize struct {
		X int
		Y int
	}
	Depth  int
	Stride int
	// contains filtered or unexported fields
}

func (*TestConv) Forward

func (e *TestConv) Forward(in [][][]float64) (out [][][]float64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL