mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
add type to array exporter (#76)
This commit is contained in:
@@ -271,6 +271,8 @@ ExportResult ArrayBinaryExporter::Export(std::ostream &write, std::shared_ptr<IP
|
||||
ArrayType arrayType = arrayTypeMap.at(type);
|
||||
|
||||
WriteHeader(writer, LUS::ResourceType::Blob, 0);
|
||||
|
||||
writer.Write(static_cast<uint32_t>(arrayType));
|
||||
writer.Write((uint32_t) array->mData.size());
|
||||
|
||||
for (auto &datum : array->mData) {
|
||||
|
||||
Reference in New Issue
Block a user