Skip to content

Instantly share code, notes, and snippets.

@ryanrhymes
Created October 3, 2017 14:27
Show Gist options
  • Save ryanrhymes/d573ef8c575a6d0e8835582692cf9f93 to your computer and use it in GitHub Desktop.
Save ryanrhymes/d573ef8c575a6d0e8835582692cf9f93 to your computer and use it in GitHub Desktop.
#require "owl_opencl";;
let x0 = Dense.Ndarray.S.uniform [|5;5|];;
let x1 = Dense.Ndarray.S.uniform [|5;5|];;
let x2 = Dense.Ndarray.S.uniform [|5;5|];;
let x3 = Owl_opencl_dense.(add (Arr x0) (Arr x1));;
let x4 = Owl_opencl_dense.(add x3 (Arr x2));;
Owl_opencl_dense.eval x4;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment