Class PtZendnn

Inheritance Relationships

Base Type

Class Documentation

class PtZendnn : public amdinfer::workers::Worker

The PtZendnn worker is a simple worker that accepts a single uint32_t argument and adds 1 to it and returns. It accepts multiple input tensors and returns the corresponding number of output tensors.

Public Functions

virtual std::thread spawn(BatchPtrQueue *input_queue) override

Starts the worker’s run() method as a separate thread and returns it.

Parameters

input_queue – queue used to send requests to the started worker thread

Returns

std::thread

inline Worker(const std::string &name, const std::string &platform)

The constructor only initializes the private class members.