gputraining

package
v3.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package gputraining defines GPU training process.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataParallelismMultiGPUTrainer

type DataParallelismMultiGPUTrainer struct {
	TensorOperators  []*gputensor.GPUOperator
	Networks         []training.Network
	DataSource       []training.DataSource
	LossFunc         []training.LossFunction
	OptimizationAlg  []optimization.Alg
	Tester           []*training.Tester
	Epoch            int
	MaxBatchPerEpoch int
	BatchSize        int
	ShowBatchInfo    bool
	GPUs             []int
	Contexts         []*driver.Context
	Driver           *driver.Driver
}

DataParallelismMultiGPUTrainer can use multiple GPUs to train the DNN model in the data parallelism style.

func (DataParallelismMultiGPUTrainer) Train

Train will run the training algorithm on the network.

Jump to

Keyboard shortcuts

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