Lines Matching refs:unvalidatedConvert
74 std::decay_t<decltype(unvalidatedConvert(std::declval<Input>()).value())>;
82 canonical.push_back(NN_TRY(nn::unvalidatedConvert(argument))); in unvalidatedConvertVec()
88 GeneralResult<std::vector<UnvalidatedConvertOutput<Type>>> unvalidatedConvert( in unvalidatedConvert() function
95 auto canonical = NN_TRY(nn::unvalidatedConvert(halObject)); in validatedConvert()
148 GeneralResult<OperandType> unvalidatedConvert(const aidl_hal::OperandType& operandType) { in unvalidatedConvert() function
157 GeneralResult<OperationType> unvalidatedConvert(const aidl_hal::OperationType& operationType) { in unvalidatedConvert() function
167 GeneralResult<DeviceType> unvalidatedConvert(const aidl_hal::DeviceType& deviceType) { in unvalidatedConvert() function
171 GeneralResult<Priority> unvalidatedConvert(const aidl_hal::Priority& priority) { in unvalidatedConvert() function
175 GeneralResult<Capabilities> unvalidatedConvert(const aidl_hal::Capabilities& capabilities) { in unvalidatedConvert() function
186 auto operandPerformance = NN_TRY(unvalidatedConvert(capabilities.operandPerformance)); in unvalidatedConvert()
193 unvalidatedConvert(capabilities.relaxedFloat32toFloat16PerformanceScalar)), in unvalidatedConvert()
195 unvalidatedConvert(capabilities.relaxedFloat32toFloat16PerformanceTensor)), in unvalidatedConvert()
197 .ifPerformance = NN_TRY(unvalidatedConvert(capabilities.ifPerformance)), in unvalidatedConvert()
198 .whilePerformance = NN_TRY(unvalidatedConvert(capabilities.whilePerformance)), in unvalidatedConvert()
202 GeneralResult<Capabilities::OperandPerformance> unvalidatedConvert( in unvalidatedConvert() function
205 .type = NN_TRY(unvalidatedConvert(operandPerformance.type)), in unvalidatedConvert()
206 .info = NN_TRY(unvalidatedConvert(operandPerformance.info)), in unvalidatedConvert()
210 GeneralResult<Capabilities::PerformanceInfo> unvalidatedConvert( in unvalidatedConvert() function
218 GeneralResult<DataLocation> unvalidatedConvert(const aidl_hal::DataLocation& location) { in unvalidatedConvert() function
241 GeneralResult<Operation> unvalidatedConvert(const aidl_hal::Operation& operation) { in unvalidatedConvert() function
243 .type = NN_TRY(unvalidatedConvert(operation.type)), in unvalidatedConvert()
249 GeneralResult<Operand::LifeTime> unvalidatedConvert( in unvalidatedConvert() function
254 GeneralResult<Operand> unvalidatedConvert(const aidl_hal::Operand& operand) { in unvalidatedConvert() function
256 .type = NN_TRY(unvalidatedConvert(operand.type)), in unvalidatedConvert()
260 .lifetime = NN_TRY(unvalidatedConvert(operand.lifetime)), in unvalidatedConvert()
261 .location = NN_TRY(unvalidatedConvert(operand.location)), in unvalidatedConvert()
262 .extraParams = NN_TRY(unvalidatedConvert(operand.extraParams)), in unvalidatedConvert()
266 GeneralResult<Operand::ExtraParams> unvalidatedConvert( in unvalidatedConvert() function
275 return unvalidatedConvert(extraParams.get<Tag::channelQuant>()); in unvalidatedConvert()
283 GeneralResult<Operand::SymmPerChannelQuantParams> unvalidatedConvert( in unvalidatedConvert() function
293 GeneralResult<Model> unvalidatedConvert(const aidl_hal::Model& model) { in unvalidatedConvert() function
295 .main = NN_TRY(unvalidatedConvert(model.main)), in unvalidatedConvert()
296 .referenced = NN_TRY(unvalidatedConvert(model.referenced)), in unvalidatedConvert()
297 .operandValues = NN_TRY(unvalidatedConvert(model.operandValues)), in unvalidatedConvert()
298 .pools = NN_TRY(unvalidatedConvert(model.pools)), in unvalidatedConvert()
300 .extensionNameToPrefix = NN_TRY(unvalidatedConvert(model.extensionNameToPrefix)), in unvalidatedConvert()
304 GeneralResult<Model::Subgraph> unvalidatedConvert(const aidl_hal::Subgraph& subgraph) { in unvalidatedConvert() function
306 .operands = NN_TRY(unvalidatedConvert(subgraph.operands)), in unvalidatedConvert()
307 .operations = NN_TRY(unvalidatedConvert(subgraph.operations)), in unvalidatedConvert()
313 GeneralResult<Model::ExtensionNameAndPrefix> unvalidatedConvert( in unvalidatedConvert() function
321 GeneralResult<Extension> unvalidatedConvert(const aidl_hal::Extension& extension) { in unvalidatedConvert() function
324 .operandTypes = NN_TRY(unvalidatedConvert(extension.operandTypes)), in unvalidatedConvert()
328 GeneralResult<Extension::OperandTypeInformation> unvalidatedConvert( in unvalidatedConvert() function
339 GeneralResult<OutputShape> unvalidatedConvert(const aidl_hal::OutputShape& outputShape) { in unvalidatedConvert() function
346 GeneralResult<MeasureTiming> unvalidatedConvert(bool measureTiming) { in unvalidatedConvert() function
350 GeneralResult<SharedMemory> unvalidatedConvert(const aidl_hal::Memory& memory) { in unvalidatedConvert() function
412 GeneralResult<Timing> unvalidatedConvert(const aidl_hal::Timing& timing) { in unvalidatedConvert() function
429 GeneralResult<Model::OperandValues> unvalidatedConvert(const std::vector<uint8_t>& operandValues) { in unvalidatedConvert() function
433 GeneralResult<BufferDesc> unvalidatedConvert(const aidl_hal::BufferDesc& bufferDesc) { in unvalidatedConvert() function
437 GeneralResult<BufferRole> unvalidatedConvert(const aidl_hal::BufferRole& bufferRole) { in unvalidatedConvert() function
447 GeneralResult<Request> unvalidatedConvert(const aidl_hal::Request& request) { in unvalidatedConvert() function
449 .inputs = NN_TRY(unvalidatedConvert(request.inputs)), in unvalidatedConvert()
450 .outputs = NN_TRY(unvalidatedConvert(request.outputs)), in unvalidatedConvert()
451 .pools = NN_TRY(unvalidatedConvert(request.pools)), in unvalidatedConvert()
455 GeneralResult<Request::Argument> unvalidatedConvert(const aidl_hal::RequestArgument& argument) { in unvalidatedConvert() function
460 .location = NN_TRY(unvalidatedConvert(argument.location)), in unvalidatedConvert()
465 GeneralResult<Request::MemoryPool> unvalidatedConvert( in unvalidatedConvert() function
470 return unvalidatedConvert(memoryPool.get<Tag::pool>()); in unvalidatedConvert()
480 GeneralResult<ErrorStatus> unvalidatedConvert(const aidl_hal::ErrorStatus& status) { in unvalidatedConvert() function
496 GeneralResult<ExecutionPreference> unvalidatedConvert( in unvalidatedConvert() function
501 GeneralResult<SharedHandle> unvalidatedConvert(const NativeHandle& aidlNativeHandle) { in unvalidatedConvert() function
505 GeneralResult<std::vector<Operation>> unvalidatedConvert( in unvalidatedConvert() function
510 GeneralResult<SyncFence> unvalidatedConvert(const ndk::ScopedFileDescriptor& syncFence) { in unvalidatedConvert() function
587 std::decay_t<decltype(unvalidatedConvert(std::declval<Input>()).value())>;
595 halObject.push_back(NN_TRY(unvalidatedConvert(argument))); in unvalidatedConvertVec()
601 nn::GeneralResult<std::vector<UnvalidatedConvertOutput<Type>>> unvalidatedConvert( in unvalidatedConvert() function
609 return utils::unvalidatedConvert(canonical); in validatedConvert()
622 nn::GeneralResult<common::NativeHandle> unvalidatedConvert(const nn::Handle& handle) { in unvalidatedConvert() function
651 nn::GeneralResult<Memory> unvalidatedConvert(const nn::Memory::Ashmem& memory) { in unvalidatedConvert() function
670 nn::GeneralResult<Memory> unvalidatedConvert(const nn::Memory::Fd& memory) { in unvalidatedConvert() function
696 nn::GeneralResult<Memory> unvalidatedConvert(const nn::Memory::HardwareBuffer& memory) { in unvalidatedConvert() function
726 nn::GeneralResult<Memory> unvalidatedConvert(const nn::Memory::Unknown& /*memory*/) { in unvalidatedConvert() function
734 nn::GeneralResult<std::vector<uint8_t>> unvalidatedConvert(const nn::CacheToken& cacheToken) { in unvalidatedConvert() function
738 nn::GeneralResult<BufferDesc> unvalidatedConvert(const nn::BufferDesc& bufferDesc) { in unvalidatedConvert() function
742 nn::GeneralResult<BufferRole> unvalidatedConvert(const nn::BufferRole& bufferRole) { in unvalidatedConvert() function
754 nn::GeneralResult<bool> unvalidatedConvert(const nn::MeasureTiming& measureTiming) { in unvalidatedConvert() function
758 nn::GeneralResult<common::NativeHandle> unvalidatedConvert(const nn::SharedHandle& sharedHandle) { in unvalidatedConvert() function
760 return unvalidatedConvert(*sharedHandle); in unvalidatedConvert()
763 nn::GeneralResult<Memory> unvalidatedConvert(const nn::SharedMemory& memory) { in unvalidatedConvert() function
769 return std::visit([](const auto& x) { return unvalidatedConvert(x); }, memory->handle); in unvalidatedConvert()
772 nn::GeneralResult<ErrorStatus> unvalidatedConvert(const nn::ErrorStatus& errorStatus) { in unvalidatedConvert() function
789 nn::GeneralResult<OutputShape> unvalidatedConvert(const nn::OutputShape& outputShape) { in unvalidatedConvert() function
794 nn::GeneralResult<ExecutionPreference> unvalidatedConvert( in unvalidatedConvert() function
799 nn::GeneralResult<OperandType> unvalidatedConvert(const nn::OperandType& operandType) { in unvalidatedConvert() function
806 nn::GeneralResult<OperandLifeTime> unvalidatedConvert( in unvalidatedConvert() function
811 nn::GeneralResult<DataLocation> unvalidatedConvert(const nn::DataLocation& location) { in unvalidatedConvert() function
821 nn::GeneralResult<std::optional<OperandExtraParams>> unvalidatedConvert( in unvalidatedConvert() function
857 nn::GeneralResult<Operand> unvalidatedConvert(const nn::Operand& operand) { in unvalidatedConvert() function
859 .type = NN_TRY(unvalidatedConvert(operand.type)), in unvalidatedConvert()
863 .lifetime = NN_TRY(unvalidatedConvert(operand.lifetime)), in unvalidatedConvert()
864 .location = NN_TRY(unvalidatedConvert(operand.location)), in unvalidatedConvert()
865 .extraParams = NN_TRY(unvalidatedConvert(operand.extraParams)), in unvalidatedConvert()
869 nn::GeneralResult<OperationType> unvalidatedConvert(const nn::OperationType& operationType) { in unvalidatedConvert() function
876 nn::GeneralResult<Operation> unvalidatedConvert(const nn::Operation& operation) { in unvalidatedConvert() function
878 .type = NN_TRY(unvalidatedConvert(operation.type)), in unvalidatedConvert()
884 nn::GeneralResult<Subgraph> unvalidatedConvert(const nn::Model::Subgraph& subgraph) { in unvalidatedConvert() function
886 .operands = NN_TRY(unvalidatedConvert(subgraph.operands)), in unvalidatedConvert()
887 .operations = NN_TRY(unvalidatedConvert(subgraph.operations)), in unvalidatedConvert()
893 nn::GeneralResult<std::vector<uint8_t>> unvalidatedConvert( in unvalidatedConvert() function
898 nn::GeneralResult<ExtensionNameAndPrefix> unvalidatedConvert( in unvalidatedConvert() function
906 nn::GeneralResult<Model> unvalidatedConvert(const nn::Model& model) { in unvalidatedConvert() function
908 .main = NN_TRY(unvalidatedConvert(model.main)), in unvalidatedConvert()
909 .referenced = NN_TRY(unvalidatedConvert(model.referenced)), in unvalidatedConvert()
910 .operandValues = NN_TRY(unvalidatedConvert(model.operandValues)), in unvalidatedConvert()
911 .pools = NN_TRY(unvalidatedConvert(model.pools)), in unvalidatedConvert()
913 .extensionNameToPrefix = NN_TRY(unvalidatedConvert(model.extensionNameToPrefix)), in unvalidatedConvert()
917 nn::GeneralResult<Priority> unvalidatedConvert(const nn::Priority& priority) { in unvalidatedConvert() function
921 nn::GeneralResult<Request> unvalidatedConvert(const nn::Request& request) { in unvalidatedConvert() function
923 .inputs = NN_TRY(unvalidatedConvert(request.inputs)), in unvalidatedConvert()
924 .outputs = NN_TRY(unvalidatedConvert(request.outputs)), in unvalidatedConvert()
925 .pools = NN_TRY(unvalidatedConvert(request.pools)), in unvalidatedConvert()
929 nn::GeneralResult<RequestArgument> unvalidatedConvert( in unvalidatedConvert() function
938 .location = NN_TRY(unvalidatedConvert(requestArgument.location)), in unvalidatedConvert()
943 nn::GeneralResult<RequestMemoryPool> unvalidatedConvert(const nn::Request::MemoryPool& memoryPool) { in unvalidatedConvert() function
948 NN_TRY(unvalidatedConvert(memory))); in unvalidatedConvert()
965 nn::GeneralResult<Timing> unvalidatedConvert(const nn::Timing& timing) { in unvalidatedConvert() function
967 .timeOnDeviceNs = NN_TRY(unvalidatedConvert(timing.timeOnDevice)), in unvalidatedConvert()
968 .timeInDriverNs = NN_TRY(unvalidatedConvert(timing.timeInDriver)), in unvalidatedConvert()
972 nn::GeneralResult<int64_t> unvalidatedConvert(const nn::Duration& duration) { in unvalidatedConvert() function
981 nn::GeneralResult<int64_t> unvalidatedConvert(const nn::OptionalDuration& optionalDuration) { in unvalidatedConvert() function
985 return unvalidatedConvert(optionalDuration.value()); in unvalidatedConvert()
988 nn::GeneralResult<int64_t> unvalidatedConvert(const nn::OptionalTimePoint& optionalTimePoint) { in unvalidatedConvert() function
992 return unvalidatedConvert(optionalTimePoint->time_since_epoch()); in unvalidatedConvert()
995 nn::GeneralResult<ndk::ScopedFileDescriptor> unvalidatedConvert(const nn::SyncFence& syncFence) { in unvalidatedConvert() function