Skip to content

Commit

Permalink
Some minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ivberg committed Oct 31, 2023
1 parent 584bf54 commit 91f0341
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions onnxruntime/core/providers/qnn/builder/qnn_backend_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "qnn_backend_manager.h"
#include "qnn_model.h"
#include <filesystem>
#include <iostream>
#include <fstream>
#include <string>
#include "QnnOpDef.h"
Expand Down Expand Up @@ -962,22 +961,17 @@ std::string QnnBackendManager::ExtractQnnScalarValue(const Qnn_Scalar_t& scalar)
case QNN_DATATYPE_UINT_64:
return std::to_string(scalar.uint64Value);
case QNN_DATATYPE_FLOAT_16:
// Assuming Qnn_Scalar_t uses float for FLOAT_16, though this is not standard.
return std::to_string(scalar.floatValue);
case QNN_DATATYPE_FLOAT_32:
return std::to_string(scalar.floatValue);
case QNN_DATATYPE_SFIXED_POINT_8:
case QNN_DATATYPE_SFIXED_POINT_16:
case QNN_DATATYPE_SFIXED_POINT_32:
// Assuming Qnn_Scalar_t uses int types for signed fixed points.
// You might need to adjust this based on how fixed point values should be displayed.
return std::to_string(scalar.int32Value); // Adjust as needed
return std::to_string(scalar.int32Value); // Assume using int types for signed fixed points.
case QNN_DATATYPE_UFIXED_POINT_8:
case QNN_DATATYPE_UFIXED_POINT_16:
case QNN_DATATYPE_UFIXED_POINT_32:
// Assuming Qnn_Scalar_t uses unsigned int types for unsigned fixed points.
// You might need to adjust this based on how fixed point values should be displayed.
return std::to_string(scalar.uint32Value); // Adjust as needed
return std::to_string(scalar.uint32Value); // Assume using unsigned int types for unsigned fixed points.
case QNN_DATATYPE_BOOL_8:
return scalar.bool8Value ? "true" : "false";
case QNN_DATATYPE_STRING:
Expand Down

0 comments on commit 91f0341

Please sign in to comment.