Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 7010334

Browse files
committed
Merge branch 'master_clean' of ssh://git-ccr-1.devtools.intel.com:29418/dl_framework-intel_caffe
2 parents 32b6ad3 + fa67231 commit 7010334

File tree

11 files changed

+340
-374
lines changed

11 files changed

+340
-374
lines changed

examples/faster-rcnn/license.txt

Lines changed: 80 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,83 @@
1-
The MIT License
2-
Copyright (c) <year> <copyright holders>
1+
Faster R-CNN
32

4-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3+
The MIT License (MIT)
4+
5+
Copyright (c) 2015 Microsoft Corporation
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in
15+
all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23+
THE SOFTWARE.
24+
25+
************************************************************************
26+
27+
THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
28+
29+
This project, Faster R-CNN, incorporates material from the project(s)
30+
listed below (collectively, "Third Party Code"). Microsoft is not the
31+
original author of the Third Party Code. The original copyright notice
32+
and license under which Microsoft received such Third Party Code are set
33+
out below. This Third Party Code is licensed to you under their original
34+
license terms set forth below. Microsoft reserves all other rights not
35+
expressly granted, whether by implication, estoppel or otherwise.
36+
37+
1. Caffe, (https://github.com/BVLC/caffe/)
38+
39+
COPYRIGHT
40+
41+
All contributions by the University of California:
42+
Copyright (c) 2014, 2015, The Regents of the University of California (Regents)
43+
All rights reserved.
44+
45+
All other contributions:
46+
Copyright (c) 2014, 2015, the respective contributors
47+
All rights reserved.
48+
49+
Caffe uses a shared copyright model: each contributor holds copyright
50+
over their contributions to Caffe. The project versioning records all
51+
such contribution and copyright details. If a contributor wants to
52+
further mark their specific copyright on a particular contribution,
53+
they should indicate their copyright solely in the commit message of
54+
the change when it is committed.
55+
56+
The BSD 2-Clause License
57+
58+
Redistribution and use in source and binary forms, with or without
59+
modification, are permitted provided that the following conditions
60+
are met:
61+
62+
1. Redistributions of source code must retain the above copyright notice,
63+
this list of conditions and the following disclaimer.
64+
65+
2. Redistributions in binary form must reproduce the above copyright
66+
notice, this list of conditions and the following disclaimer in the
67+
documentation and/or other materials provided with the distribution.
68+
69+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
70+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
71+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
72+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
73+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
74+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
75+
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
76+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
77+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
78+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
79+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
80+
81+
************END OF THIRD-PARTY SOFTWARE NOTICES AND INFORMATION**********
582

6-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
783

8-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

examples/rfcn/license.txt

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
1-
The MIT License
2-
Copyright (c) <year> <copyright holders>
1+
MIT License
32

4-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3+
Copyright (c) 2016 Yuwen Xiong
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
522

6-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
723

8-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

include/caffe/layers/base_conv_layer.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,12 @@ class BaseConvolutionLayer : public Layer<Dtype> {
221221
}
222222
#endif
223223

224-
int num_kernels_im2col_;
225-
int num_kernels_col2im_;
226-
int conv_out_channels_;
227-
int conv_in_channels_;
228-
int conv_out_spatial_dim_;
229-
int kernel_dim_;
224+
size_t num_kernels_im2col_;
225+
size_t num_kernels_col2im_;
226+
size_t conv_out_channels_;
227+
size_t conv_in_channels_;
228+
size_t conv_out_spatial_dim_;
229+
size_t kernel_dim_;
230230
size_t col_offset_;
231231
size_t output_offset_;
232232

include/caffe/layers/mkldnn_layers.hpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class MKLDNNBatchNormLayer : public MKLDNNLayer<Dtype>, public Layer<Dtype> {
141141

142142
shared_ptr<primitive> input_primitive, bwd_top_diff_primitive;
143143

144-
int32_t num_, width_, height_, channels_;
144+
vector<int> shape_;
145145
Dtype eps_, moving_average_fraction_;
146146
bool use_weight_bias_, bias_term_, use_global_stats_;
147147
int num_stats_batches_;
@@ -402,7 +402,7 @@ class MKLDNNReLULayer : public MKLDNNLayer<Dtype> , public NeuronLayer<Dtype> {
402402
, reluFwd_pd(), reluBwd_pd()
403403
, fwd_top_data_memory(), bwd_bottom_diff_memory()
404404
, fwd_bottom_data_primitive(), bwd_top_diff_primitive()
405-
, num_(0), width_(0), height_(0), channels_(0)
405+
, shape_(0)
406406
{
407407
PERFORMANCE_EVENT_ID_RESET(perf_id_fw_);
408408
PERFORMANCE_EVENT_ID_RESET(perf_id_bw_);
@@ -431,7 +431,7 @@ class MKLDNNReLULayer : public MKLDNNLayer<Dtype> , public NeuronLayer<Dtype> {
431431
MKLDNNPrimitive<Dtype> reluFwd, reluBwd;
432432
shared_ptr<memory> fwd_top_data_memory, bwd_bottom_diff_memory;
433433
shared_ptr<primitive> fwd_bottom_data_primitive, bwd_top_diff_primitive, bwd_bottom_data_primitive;
434-
int32_t num_, width_, height_, channels_;
434+
vector<int> shape_;
435435

436436
PERFORMANCE_EVENT_ID_DECL(perf_id_fw_);
437437
PERFORMANCE_EVENT_ID_DECL(perf_id_bw_);
@@ -480,7 +480,8 @@ class MKLDNNConcatLayer : public MKLDNNLayer<Dtype> , public Layer<Dtype> {
480480
vector<int> split_dims;
481481
bool in_place_;
482482

483-
int32_t num_, width_, height_, channels_, num_concats_;
483+
int32_t num_concats_;
484+
vector<int> shape_;
484485
int concat_dimension;
485486

486487
PERFORMANCE_EVENT_ID_DECL(perf_id_fw_);
@@ -537,7 +538,7 @@ class MKLDNNEltwiseLayer : public MKLDNNLayer<Dtype> , public Layer<Dtype> {
537538
, eltwiseFwd_pd()
538539
, fwd_top_data_memory()
539540
, fwd_bottom_data_primitives_()
540-
, num_(0), width_(0), height_(0), channels_(0)
541+
, shape_(0)
541542
, num_bottoms_(0)
542543
{
543544
PERFORMANCE_EVENT_ID_RESET(perf_id_fw_);
@@ -573,7 +574,7 @@ class MKLDNNEltwiseLayer : public MKLDNNLayer<Dtype> , public Layer<Dtype> {
573574
EltwiseParameter_EltwiseOp op_;
574575
vector<Dtype> coeffs_;
575576
Blob<int> max_idx_;
576-
int32_t num_, width_, height_, channels_;
577+
vector<int> shape_;
577578
int32_t num_bottoms_;
578579
bool stable_prod_grad_;
579580

0 commit comments

Comments
 (0)