Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

May be mistake about copy_weights_net(...) of network.c #8667

Closed
chgoatherd opened this issue Sep 12, 2022 · 1 comment
Closed

May be mistake about copy_weights_net(...) of network.c #8667

chgoatherd opened this issue Sep 12, 2022 · 1 comment

Comments

@chgoatherd
Copy link

if (l->type == CRNN)
{
	layer tmp_input_layer, tmp_self_layer, tmp_output_layer;

	copy_cudnn_descriptors(*net_map->layers[k].input_layer, &tmp_input_layer);     // "net_map" should be "net_train"
	copy_cudnn_descriptors(*net_map->layers[k].self_layer, &tmp_self_layer);           // "net_map" should be "net_train"
	copy_cudnn_descriptors(*net_map->layers[k].output_layer, &tmp_output_layer);   // "net_map" should be "net_train"
	net_map->layers[k].input_layer = net_train.layers[k].input_layer;
	net_map->layers[k].self_layer = net_train.layers[k].self_layer;
	net_map->layers[k].output_layer = net_train.layers[k].output_layer;
	//net_map->layers[k].output_gpu = net_map->layers[k].output_layer->output_gpu;  // already copied out of if()

	copy_cudnn_descriptors(tmp_input_layer, net_map->layers[k].input_layer);   // "net_map" should be "net_train"
	copy_cudnn_descriptors(tmp_self_layer, net_map->layers[k].self_layer);        // "net_map" should be "net_train"
	copy_cudnn_descriptors(tmp_output_layer, net_map->layers[k].output_layer);  // "net_map" should be "net_train"
}
else if (l->input_layer) // for AntiAliasing
{
	layer tmp_input_layer;

	copy_cudnn_descriptors(*net_map->layers[k].input_layer, &tmp_input_layer);  // "net_map" should be "net_train"
	net_map->layers[k].input_layer = net_train.layers[k].input_layer;
	copy_cudnn_descriptors(tmp_input_layer, net_map->layers[k].input_layer);    // "net_map" should be "net_train"
}
@lrf19991230
Copy link

I want to know what kind of consequences this error will lead to? like #8669? why

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants