Creates a custom operator (a batched dot product) defining both the forward operator and its gradient in Poplar code. Uses the custom operator in a simple logistic regression optimisation program which checks the results with the custom operator match those from the built-in operator.
MakefileSimple Makefile that builds the Poplar shared object.product.cppPoplar code that describes the forward and grad operators.regression.pyTensorFlow program that uses the custom operator to do logistic regression.requirements.txtRequired packages.test_regression.pyScript for testing this example.README.mdThis file.
-
Prepare the environment.
Install the Poplar SDK following the instructions in the Getting Started guide for your IPU system. Make sure to source the
enable.shscript for Poplar. -
Build the custom operator and then run the Python code:
make
python3 regression.py