Documentation
¶
Overview ¶
Package triosim provides a simulator that replays DNN execution traces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Layer ¶
type Layer struct {
ID int //operator id
Name string
Inputs []Tensor
Outputs []Tensor
InputSize []int
OutputSize []int
TimeInSec float64
GPUID int
Stage string
SetBatchSize bool
TPflag int
}
A Layer represents a layer in the neural network.
type Tensor ¶
type Tensor struct {
Index int
ID string //tensor id
Size int
Category TensorType
ChunkID int
GPUID int
MemoryStatus TensorMemoryStatus
}
A Tensor represents a tensor being used in the neural network. We do not carry the data since the execution time should be data independent.
type TensorMemoryStatus ¶
type TensorMemoryStatus int
TensorMemoryStatus represents the memory status of a tensor.
const ( TensorMemoryStatusUnknown TensorMemoryStatus = iota TensorMemoryStatusAllocated TensorMemoryStatusAvailable TensorMemoryStatusToBeUsed TensorMemoryStatusUsed )
TensorMemoryStatus constants
type TensorMsg ¶
type TensorMsg struct {
sim.MsgMeta
TensorPkg []Tensor
DstRegionName string
GPUID int
Purpose string
RoundID int
}
A TensorMsg represents the transfer of a tensor package.
type TensorType ¶
type TensorType int
A TensorType represent the type of data it stores
const ( Input TensorType = iota Output Weight RunningMean RunningVar Bias Activation Gradient Other )
TensorType constants
type TraceLoader ¶
type TraceLoader struct {
// The directory where the trace files are located.
Dir string
}
A TraceLoader loads a trace from a set of files.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package networkmodel provides a performance model for the network that connects devices.
|
Package networkmodel provides a performance model for the network that connects devices. |
|
test
command
|
|
|
Package timemodel provides a performance model for the time of execution of operators and layers.
|
Package timemodel provides a performance model for the time of execution of operators and layers. |
|
Package traceplayer provides a trace player that plays a trace and simulates the execution of the trace.
|
Package traceplayer provides a trace player that plays a trace and simulates the execution of the trace. |
Click to show internal directories.
Click to hide internal directories.