1 // 2 // Copyright © 2022 Arm Ltd and Contributors. All rights reserved. 3 // SPDX-License-Identifier: MIT 4 // 5 6 #pragma once 7 8 #include "RefBaseWorkload.hpp" 9 #include <armnn/backends/WorkloadData.hpp> 10 #include "RefWorkloadUtils.hpp" 11 12 namespace armnn 13 { 14 15 16 class RefCastWorkload : public RefBaseWorkload<CastQueueDescriptor> 17 { 18 public: 19 using RefBaseWorkload<CastQueueDescriptor>::RefBaseWorkload; 20 void Execute() const override; 21 void ExecuteAsync(ExecutionData& executionData) override; 22 private: 23 void Execute(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs) const; 24 }; 25 26 } //namespace armnn 27 28