Skip to content

Commit

Permalink
Updated autograd tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ulises-jeremias committed Jul 8, 2023
1 parent 9eb16b0 commit c3d2cee
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions storage/storage_test.v
Original file line number Diff line number Diff line change
@@ -1,33 +1,9 @@
module storage

// import vsl.vcl

fn test_cpu_with_default() {
s := storage[f64](2, 0, 1.0)
array := s.to_array()
assert array.len == 2
assert array[0] == 1.0
assert array[1] == 1.0
}

// fn test_vcl_with_default() {
// $if vcl ? {
// // get all devices if you want
// devices := vcl.get_devices(vcl.device_cpu) or { panic(err) }
// println('Devices: $devices')

// // do not create platforms/devices/contexts/queues/...
// // just get the device
// mut device := vcl.get_default_device() or { panic(err) }
// defer {
// device.release() or { panic(err) }
// }

// s := storage[f64](2, 0, 1.0).vcl(device: device) or { panic(err) }
// array := s.to_array() or { panic(err) }
// assert array.len == 2
// assert array[0] == 1.0
// } $else {
// assert true
// }
// }

0 comments on commit c3d2cee

Please sign in to comment.