Bug fix for TridentNet

Bug fix for TridentNet - share_index
This commit is contained in:
Alexey 2019-07-28 00:03:41 +03:00 committed by GitHub
parent 61bab85a54
commit 6761e832cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ convolutional_layer parse_convolutional(list *options, size_params params, netwo
int share_index = option_find_int_quiet(options, "share_index", -1);
convolutional_layer *share_layer = NULL;
if((long long int)share_layer > -1) share_layer = &net.layers[share_index];
if(share_index > -1) share_layer = &net.layers[share_index];
int batch,h,w,c;
h = params.h;