add shallow fusion (#147)
This commit is contained in:
@@ -97,8 +97,8 @@ struct CopyableOrtValue {
|
||||
|
||||
CopyableOrtValue() = default;
|
||||
|
||||
/*explicit*/ CopyableOrtValue(Ort::Value v) // NOLINT
|
||||
: value(std::move(v)) {}
|
||||
/*explicit*/ CopyableOrtValue(Ort::Value v) // NOLINT
|
||||
: value(std::move(v)) {}
|
||||
|
||||
CopyableOrtValue(const CopyableOrtValue &other);
|
||||
|
||||
@@ -109,6 +109,10 @@ struct CopyableOrtValue {
|
||||
CopyableOrtValue &operator=(CopyableOrtValue &&other);
|
||||
};
|
||||
|
||||
std::vector<CopyableOrtValue> Convert(std::vector<Ort::Value> values);
|
||||
|
||||
std::vector<Ort::Value> Convert(std::vector<CopyableOrtValue> values);
|
||||
|
||||
} // namespace sherpa_onnx
|
||||
|
||||
#endif // SHERPA_ONNX_CSRC_ONNX_UTILS_H_
|
||||
|
||||
Reference in New Issue
Block a user