FTorch
FTorch copied to clipboard
GPU demo
This PR includes various tweaks in preparation for giving a GPU demo:
- Provides templates for switching to GPU across the examples.
- Fixes some Python imports in example 3.
- Compiles example 3 if CUDA is enabled.
- Some naming consistency.
We should follow this up by adding tests for example 3. I propose doing this when addressing #142.
[The issue I was having was due to a bug I accidentally introduced, which I've now fixed.]