conv2d

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package conv2d defines a benchmark for the Convolutional Layer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Benchmark

type Benchmark struct {
	N, C, H, W int

	KernelChannel, KernelHeight, KernelWidth int
	PadX, PadY                               int
	StrideX, StrideY                         int
	EnableBackward                           bool
	// contains filtered or unexported fields
}

A Benchmark is a benchmark for the Convolutional Layer.

func NewBenchmark

func NewBenchmark(driver *driver.Driver) *Benchmark

NewBenchmark creates a new Conv2D benchmark. It requires the GPU driver as an argument.

func (*Benchmark) EnableVerification

func (b *Benchmark) EnableVerification()

EnableVerification configures the benchmark to verify the result.

func (*Benchmark) Run

func (b *Benchmark) Run()

Run runs the benchmark.

func (*Benchmark) SelectGPU

func (b *Benchmark) SelectGPU(gpus []int)

SelectGPU selects the GPU to run the benchmark on.

func (*Benchmark) SetUnifiedMemory

func (b *Benchmark) SetUnifiedMemory()

SetUnifiedMemory configures the benchmark to use unified memory.

func (*Benchmark) Verify

func (b *Benchmark) Verify()

Verify does nothing for now.

Jump to

Keyboard shortcuts

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