}
-#if 0 // REF-ANN
-StepExecutor::StepExecutor(const ExecutionBuilder* executionBuilder,
- const ModelBuilder* model,
- sp<IDevice> driver, sp<IPreparedModel> preparedModel) :
- mExecutionBuilder(executionBuilder), mModel(model),
- mDriver(driver), mPreparedModel(preparedModel),
- mInputs(model->inputCount()), mOutputs(model->outputCount()) {}
-#endif // REF-ANN
StepExecutor::StepExecutor(const ExecutionBuilder* executionBuilder, const ModelBuilder* model)
: mExecutionBuilder(executionBuilder), mModel(model) {}
// on the CPU).
class StepExecutor {
// TODO-NNRT: Consider removing StepExecutor completely if it's not necessary
-#if 0 // REF-ANN
public:
// executionBuilder
// Describes the full (possibly multiple-"step") execution.
// model
// The model to be executed by the executor. Possibly a
// submodel of the model from executionBuilder.
- // driver, preparedModel
- // The device on which to execute the "step", and the prepared
- // model to execute on that device. (Both are nullptr in the
- // case of CPU.)
- StepExecutor(const ExecutionBuilder* executionBuilder,
- const ModelBuilder* model,
- sp<IDevice> driver, sp<IPreparedModel> preparedModel);
-#endif
-public:
StepExecutor(const ExecutionBuilder* executionBuilder, const ModelBuilder* model);
// Map inputs and outputs from ExecutionBuilder to StepExecutor,
// in the case where we have a single-"step" execution (i.e., the executor