Answer the question
In order to leave comments, you need to log in
Error when calling Cuda kernel?
Good afternoon, the program has a class:
class neuralNet {
float input_nodes;
float hidden_nodes;
float output_nodes;
float learning_grade;
float* wih;
float* who;
public:
neuralNet(int in, int hid, int out, float lr);
~neuralNet();
float*activation_function(float* a, int n);
void train(float*inputs, float*targets);
void query(float*inputs);
__global__ void query_kernel(float*inputs_d); // (2)
};
n.query_kernel << <60000, 1 >> > (inputs_d); // (1)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question