29 : _input{nullptr}, _shape{nullptr}, _output{nullptr}, _back_prop_input{nullptr},
30 _back_prop_output{nullptr}
37 size_t count = input->total_size();
38 memcpy(output->buffer(), input->buffer(), count);
53 _back_prop_input = back_prop_input;
54 _back_prop_output = back_prop_output;
A tensor class that is portable for other backends.
void configure(const IPortableTensor *input, const IPortableTensor *shape, IPortableTensor *output)
void configureBackward(IPortableTensor *back_prop_input, const IPortableTensor *back_prop_output)
void forward(bool training) override