mirror of
https://github.com/StepanovPlaton/NeuralNetwork.git
synced 2026-04-03 20:30:39 +04:00
Complete first GPU tensors
This commit is contained in:
@@ -5,9 +5,16 @@
|
||||
|
||||
// TODO: GENERIC KERNELS
|
||||
// TODO: Scalar mult
|
||||
// TODO: TMult >2
|
||||
|
||||
OpenCL openCL;
|
||||
|
||||
int main() {
|
||||
Tensor<float, 2> a = Tensor<float, 2>({2, 4});
|
||||
std::cout << a.toString();
|
||||
Tensor<float, 2> a = Tensor<float, 2>({8192, 8192}, 1);
|
||||
Tensor<float, 2> b = Tensor<float, 2>({8192, 8192}, 1);
|
||||
auto c = a % b;
|
||||
Tensor<float, 2> d = Tensor<float, 2>(c);
|
||||
d += 1;
|
||||
std::cout << d.toString();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user