KomputeProject / kompute

General purpose GPU compute framework built on Vulkan to support 1000s of cross vendor graphics cards (AMD, Qualcomm, NVIDIA & friends). Blazing fast, mobile-enabled, asynchronous and optimized for advanced GPU data processing usecases. Backed by the Linux Foundation.
http://kompute.cc/
Apache License 2.0
1.95k stars 147 forks source link

Add tests for using uninitialised tensors. #391

Closed robquill closed 3 weeks ago

robquill commented 3 weeks ago

Modify the ReserveData test to test some different ways of creating uninitialised tensors.

Remove the test which tests that the size of an uninitialised tensor is zero, as the tensor does have a size it just has no data.

robquill commented 3 weeks ago

@ThePseudo , I'd be interested in your review of this. I had independently done something similar so have merged my changes on top of yours.