im2col

package
v3.0.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package im2col defines a benchmark for the im2col operation.

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

	KernelHeight, KernelWidth int
	PadX, PadY                int
	StrideX, StrideY          int
	DilateX, DilateY          int

	Input tensor.Tensor
	// contains filtered or unexported fields
}

A Benchmark is a benchmark for the im2col operation.

func NewBenchmark

func NewBenchmark(driver *driver.Driver) *Benchmark

NewBenchmark creates a new Im2Col 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