conv1x1

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package conv1x1 implements a 1-dimensional 1-kernel convolution model

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	InputChannels  int
	OutputChannels int
}

Config provides configuration parameters for Model.

type Model

type Model struct {
	nn.Module
	Config Config
	W      *nn.Param
	B      *nn.Param
}

Model is a superficial depth-wise 1-dimensional convolution model. The following values are fixed: kernel size = 1; stride = 1; padding = 0,

func New

func New[T float.DType](config Config) *Model

New returns a new Model.

func (*Model) Forward

func (m *Model) Forward(xs ...mat.Tensor) []mat.Tensor

Forward performs the forward step. Each "x" is a channel.

Jump to

Keyboard shortcuts

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