Definition at line 947 of file SOFIE_common_helpers.cxx.
|
| | SafetensorsReader (SafetensorsBlob blob) |
| |
| template<class T > |
| void | Read (const std::string &name, std::vector< T > &target, std::size_t expectedLength, const std::string &expectedDtype) |
| |
|
| const char * | fData |
| |
| std::size_t | fSize |
| |
| std::unordered_map< std::string, SafetensorsTensorInfo > | fTensors |
| |
◆ SafetensorsReader()
| SafetensorsReader::SafetensorsReader |
( |
SafetensorsBlob | blob | ) |
|
|
inlineexplicit |
◆ Read()
template<class T >
| void SafetensorsReader::Read |
( |
const std::string & | name, |
|
|
std::vector< T > & | target, |
|
|
std::size_t | expectedLength, |
|
|
const std::string & | expectedDtype ) |
|
inline |
◆ fData
| const char* SafetensorsReader::fData |
|
private |
◆ fSize
| std::size_t SafetensorsReader::fSize |
|
private |
◆ fTensors
| std::unordered_map<std::string, SafetensorsTensorInfo> SafetensorsReader::fTensors |
|
private |