- class unreal.NeuralTensorType¶
The type of the neural tensor. E.g., a Weight tensor will be read-only and never modified, an Input tensor will be modified by the user, an IntermediateNotInitialized tensor will change on each frame, etc.
Although conceptually this could apply to both the CPU and GPU versions, in practice only the GPU performance is affected by this setting so far.
Safe and generic tensor that works in every situation (e.g., ReadWrite, not volatile). However, it might not be the most efficient one for most cases.
Input tensor of a neural network, usually copied from the CPU and usually ReadOnly (but might be modified by in-place operators like ReLU).
Intermediate tensor that is initialized with CPU data (e.g., XWithZeros in FConvTranpose). Copied from CPU.
Intermediate tensor of a neural network (output of at least a layer and input of at least some other layer). Not copied from CPU, ReadWrite, and transient.
Output tensor of a neural network. Not copied from CPU and ReadWrite.
Weights of a particular operator/layer. Copied from CPU, ReadOnly, and initialized from CPU memory.