Scanner C++ API
sample_kernel.h
1 #include "scanner/api/kernel.h"
2 #include "scanner/api/op.h"
3 #include "scanner/util/memory.h"
4 #include "scanner/metadata.pb.h"
5 
6 #include <boost/python.hpp>
7 #include <boost/python/numpy.hpp>
8 
9 namespace scanner {
10 
11 class SampleKernel : public Kernel {
12  public:
13  SampleKernel(const KernelConfig& config, const std::string& kernel_str,
14  const std::string& pickled_config);
15 
16  ~SamplehonKernel();
17 
18  void execute(const BatchedElements& input_columns,
19  BatchedElements& output_columns) override;
20 
21  private:
22  KernelConfig config_;
23  DeviceHandle device_;
24 };
25 
26 }
Definition: sample_kernel.h:11
Kernel parameters provided at instantiation.
Definition: kernel.h:118
void execute(const BatchedElements &input_columns, BatchedElements &output_columns) override
Runs the op on input elements and produces equal number of output elements.
Definition: common.h:53
Definition: database.cpp:36
Definition: kernel.h:345