Add convertFp16 mode.

This commit is contained in:
sunwen
2024-04-03 16:36:51 +08:00
parent 2d2d1a993b
commit aab3b1c87c
4 changed files with 1019 additions and 0 deletions

View File

@@ -2,10 +2,12 @@
#include "MatlabCreatorPrivate.h"
#include "MatlabCreatorVariableWindowPrivate.h"
#include "MatlabCreatorConvertFp16Private.h"
MatlabCreator::MatlabCreator(const std::string& aDirectoryPath)
: mPrivate(new MatlabCreatorPrivate(aDirectoryPath))
, mVariableWindowPrivate(new MatlabCreatorVariableWindowPrivate(aDirectoryPath))
, mConvertFp16Private(new MatlabCreatorConvertFp16Private(aDirectoryPath))
{
}
@@ -24,5 +26,10 @@ bool MatlabCreator::createKITVariableWindowMat(const std::string& aOutputPath)
return mVariableWindowPrivate->createKITMat(aOutputPath);
}
bool MatlabCreator::createKITConvertFp16Mat(const std::string& aOutputPath)
{
return mConvertFp16Private->createKITMat(aOutputPath);
}