|
static trtcaffe::Type | getBlobProtoDataType (const trtcaffe::BlobProto &blobMsg) |
|
static size_t | sizeOfCaffeType (trtcaffe::Type type) |
|
static std::pair< const void *, size_t > | getBlobProtoData (const trtcaffe::BlobProto &blobMsg, trtcaffe::Type type, std::vector< void * > &tmpAllocs) |
|
◆ CaffeWeightFactory()
CaffeWeightFactory::CaffeWeightFactory |
( |
const trtcaffe::NetParameter & |
msg, |
|
|
nvinfer1::DataType |
dataType, |
|
|
std::vector< void * > & |
tmpAllocs, |
|
|
bool |
isInitialized |
|
) |
| |
◆ getDataType()
DataType CaffeWeightFactory::getDataType |
( |
| ) |
const |
◆ getDataTypeSize()
size_t CaffeWeightFactory::getDataTypeSize |
( |
| ) |
const |
◆ getTmpAllocs()
std::vector< void * > & CaffeWeightFactory::getTmpAllocs |
( |
| ) |
|
◆ getBlobsSize()
int CaffeWeightFactory::getBlobsSize |
( |
const std::string & |
layerName | ) |
|
◆ getBlob()
const trtcaffe::BlobProto * CaffeWeightFactory::getBlob |
( |
const std::string & |
layerName, |
|
|
int |
index |
|
) |
| |
◆ getAllWeights()
std::vector< Weights > CaffeWeightFactory::getAllWeights |
( |
const std::string & |
layerName | ) |
|
◆ operator()()
Weights CaffeWeightFactory::operator() |
( |
const std::string & |
layerName, |
|
|
WeightType |
weightType |
|
) |
| |
|
virtual |
◆ convert() [1/2]
◆ convert() [2/2]
◆ isOK()
bool CaffeWeightFactory::isOK |
( |
| ) |
|
◆ isInitialized()
bool CaffeWeightFactory::isInitialized |
( |
| ) |
|
◆ getNullWeights()
Weights CaffeWeightFactory::getNullWeights |
( |
| ) |
|
◆ allocateWeights() [1/2]
Weights CaffeWeightFactory::allocateWeights |
( |
int64_t |
elems, |
|
|
std::uniform_real_distribution< float > |
distribution = std::uniform_real_distribution<float>(-0.01f, 0.01F) |
|
) |
| |
◆ allocateWeights() [2/2]
Weights CaffeWeightFactory::allocateWeights |
( |
int64_t |
elems, |
|
|
std::normal_distribution< float > |
distribution |
|
) |
| |
◆ getBlobProtoDataType()
trtcaffe::Type CaffeWeightFactory::getBlobProtoDataType |
( |
const trtcaffe::BlobProto & |
blobMsg | ) |
|
|
static |
◆ sizeOfCaffeType()
size_t CaffeWeightFactory::sizeOfCaffeType |
( |
trtcaffe::Type |
type | ) |
|
|
static |
◆ getBlobProtoData()
std::pair< const void *, size_t > CaffeWeightFactory::getBlobProtoData |
( |
const trtcaffe::BlobProto & |
blobMsg, |
|
|
trtcaffe::Type |
type, |
|
|
std::vector< void * > & |
tmpAllocs |
|
) |
| |
|
static |
◆ checkForNans()
template<typename T >
bool CaffeWeightFactory::checkForNans |
( |
const void * |
values, |
|
|
int |
count, |
|
|
const std::string & |
layerName |
|
) |
| |
|
private |
◆ getWeights()
Weights CaffeWeightFactory::getWeights |
( |
const trtcaffe::BlobProto & |
blobMsg, |
|
|
const std::string & |
layerName |
|
) |
| |
|
private |
◆ mMsg
const trtcaffe::NetParameter& nvcaffeparser1::CaffeWeightFactory::mMsg |
|
private |
◆ mRef
std::unique_ptr<trtcaffe::NetParameter> nvcaffeparser1::CaffeWeightFactory::mRef |
|
private |
◆ mTmpAllocs
std::vector<void*>& nvcaffeparser1::CaffeWeightFactory::mTmpAllocs |
|
private |
◆ mDataType
◆ mInitialized
bool nvcaffeparser1::CaffeWeightFactory::mInitialized |
|
private |
◆ generator
std::default_random_engine nvcaffeparser1::CaffeWeightFactory::generator |
|
private |
◆ mOK
bool nvcaffeparser1::CaffeWeightFactory::mOK {true} |
|
private |
The documentation for this class was generated from the following files:
- caffeWeightFactory.h
- caffeWeightFactory.cpp