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 ¶
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) SetUnifiedMemory ¶
func (b *Benchmark) SetUnifiedMemory()
SetUnifiedMemory configures the benchmark to use unified memory.
Click to show internal directories.
Click to hide internal directories.