// Copyright Epic Games, Inc. All Rights Reserved. #include "NNERuntimeRDGUtilsHelpers.h" #include "NNEHlslShadersLog.h" THIRD_PARTY_INCLUDES_START #include THIRD_PARTY_INCLUDES_END namespace UE::NNERuntimeRDGUtils::Private { TOptional GetOpVersionFromOpsetVersion(const FString& OpType, int OpsetVersion) { const onnx::OpSchema* OpSchema = onnx::OpSchemaRegistry::Schema(TCHAR_TO_ANSI(*OpType), OpsetVersion); if(OpSchema == nullptr) { UE_LOG(LogNNERuntimeRDGHlsl, Warning, TEXT("No OpSchema found for operator %s and OpSet version %d."), *OpType, OpsetVersion); return TOptional(); } return (uint32) OpSchema->SinceVersion(); } } // namespace UE::NNERuntimeRDGUtils::Private