LoadTrainingData.cpp 590 B

1234567891011121314151617181920
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include <Nodes/LoadTrainingData.h>
  9. #include <Assets/MnistDataLoader.h>
  10. namespace MachineLearning
  11. {
  12. ILabeledTrainingDataPtr LoadTrainingData::In(AZStd::string ImageFile, AZStd::string LabelFile)
  13. {
  14. ILabeledTrainingDataPtr result = AZStd::make_shared<MnistDataLoader>();
  15. result->LoadArchive(ImageFile, LabelFile);
  16. return result;
  17. }
  18. }