=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== caffe-1.0.0+git20180821.99bd997/cmake/Templates/CaffeConfig.cmake.in-29- message(STATUS "Caffe: using OpenCV config from ${Caffe_OpenCV_CONFIG_PATH}") caffe-1.0.0+git20180821.99bd997/cmake/Templates/CaffeConfig.cmake.in:30: include(${Caffe_OpenCV_CONFIG_PATH}/OpenCVConfig.cmake) caffe-1.0.0+git20180821.99bd997/cmake/Templates/CaffeConfig.cmake.in-31- endif() ############################################## caffe-1.0.0+git20180821.99bd997/cmake/Templates/CaffeConfig.cmake.in-44-if(NOT TARGET caffe AND NOT caffe_BINARY_DIR) caffe-1.0.0+git20180821.99bd997/cmake/Templates/CaffeConfig.cmake.in:45: include("${Caffe_CMAKE_DIR}/CaffeTargets.cmake") caffe-1.0.0+git20180821.99bd997/cmake/Templates/CaffeConfig.cmake.in-46-endif() ############################################## caffe-1.0.0+git20180821.99bd997/docker/README.md-21- caffe-1.0.0+git20180821.99bd997/docker/README.md:22:`docker run --rm -u $(id -u):$(id -g) -v $(pwd):$(pwd) -w $(pwd) bvlc/caffe:cpu caffe train --solver=example_solver.prototxt` caffe-1.0.0+git20180821.99bd997/docker/README.md-23- ############################################## caffe-1.0.0+git20180821.99bd997/docs/README.md-2- caffe-1.0.0+git20180821.99bd997/docs/README.md:3:To generate the documentation, run `$CAFFE_ROOT/scripts/build_docs.sh`. caffe-1.0.0+git20180821.99bd997/docs/README.md-4- caffe-1.0.0+git20180821.99bd997/docs/README.md:5:To push your changes to the documentation to the gh-pages branch of your or the BVLC repo, run `$CAFFE_ROOT/scripts/deploy_docs.sh <repo_name>`. ############################################## caffe-1.0.0+git20180821.99bd997/docs/install_osx.md-12- caffe-1.0.0+git20180821.99bd997/docs/install_osx.md:13:**Library Path**: We find that everything compiles successfully if `$LD_LIBRARY_PATH` is not set at all, and `$DYLD_FALLBACK_LIBRARY_PATH` is set to provide CUDA, Python, and other relevant libraries (e.g. `/usr/local/cuda/lib:$HOME/anaconda/lib:/usr/local/lib:/usr/lib`). caffe-1.0.0+git20180821.99bd997/docs/install_osx.md-14-In other `ENV` settings, things may not work as expected. ############################################## caffe-1.0.0+git20180821.99bd997/docs/installation.md-86- caffe-1.0.0+git20180821.99bd997/docs/installation.md:87:To import the `caffe` Python module after completing the installation, add the module directory to your `$PYTHONPATH` by `export PYTHONPATH=/path/to/caffe/python:$PYTHONPATH` or the like. You should not import the module in the `caffe/python/caffe` directory! caffe-1.0.0+git20180821.99bd997/docs/installation.md-88- ############################################## caffe-1.0.0+git20180821.99bd997/docs/installation.md-92- caffe-1.0.0+git20180821.99bd997/docs/installation.md:93:Install MATLAB, and make sure that its `mex` is in your `$PATH`. caffe-1.0.0+git20180821.99bd997/docs/installation.md-94- ############################################## caffe-1.0.0+git20180821.99bd997/docs/tutorial/interfaces.md-72-Compile pycaffe by `make pycaffe`. caffe-1.0.0+git20180821.99bd997/docs/tutorial/interfaces.md:73:Add the module directory to your `$PYTHONPATH` by `export PYTHONPATH=/path/to/caffe/python:$PYTHONPATH` or the like for `import caffe`. caffe-1.0.0+git20180821.99bd997/docs/tutorial/interfaces.md-74- ############################################## caffe-1.0.0+git20180821.99bd997/docs/tutorial/solver.md-99-Under the above settings, we'll always use `momentum` $$ \mu = 0.9 $$. caffe-1.0.0+git20180821.99bd997/docs/tutorial/solver.md:100:We'll begin training at a `base_lr` of $$ \alpha = 0.01 = 10^{-2} $$ for the first 100,000 iterations, then multiply the learning rate by `gamma` ($$ \gamma $$) and train at $$ \alpha' = \alpha \gamma = (0.01) (0.1) = 0.001 = 10^{-3} $$ for iterations 100K-200K, then at $$ \alpha'' = 10^{-4} $$ for iterations 200K-300K, and finally train until iteration 350K (since we have `max_iter: 350000`) at $$ \alpha''' = 10^{-5} $$. caffe-1.0.0+git20180821.99bd997/docs/tutorial/solver.md-101- ############################################## caffe-1.0.0+git20180821.99bd997/examples/mnist/readme.md-26- caffe-1.0.0+git20180821.99bd997/examples/mnist/readme.md:27:The design of LeNet contains the essence of CNNs that are still used in larger models such as the ones in ImageNet. In general, it consists of a convolutional layer followed by a pooling layer, another convolution layer followed by a pooling layer, and then two fully connected layers similar to the conventional multilayer perceptrons. We have defined the layers in `$CAFFE_ROOT/examples/mnist/lenet_train_test.prototxt`. caffe-1.0.0+git20180821.99bd997/examples/mnist/readme.md-28- ############################################## caffe-1.0.0+git20180821.99bd997/examples/mnist/readme.md-30- caffe-1.0.0+git20180821.99bd997/examples/mnist/readme.md:31:This section explains the `lenet_train_test.prototxt` model definition that specifies the LeNet model for MNIST handwritten digit classification. We assume that you are familiar with [Google Protobuf](https://developers.google.com/protocol-buffers/docs/overview), and assume that you have read the protobuf definitions used by Caffe, which can be found at `$CAFFE_ROOT/src/caffe/proto/caffe.proto`. caffe-1.0.0+git20180821.99bd997/examples/mnist/readme.md-32- ############################################## caffe-1.0.0+git20180821.99bd997/examples/mnist/readme.md-105- caffe-1.0.0+git20180821.99bd997/examples/mnist/readme.md:106:Similarly, you can write up the second convolution and pooling layers. Check `$CAFFE_ROOT/examples/mnist/lenet_train_test.prototxt` for details. caffe-1.0.0+git20180821.99bd997/examples/mnist/readme.md-107- ############################################## caffe-1.0.0+git20180821.99bd997/examples/mnist/readme.md-188-This is a rule, which controls layer inclusion in the network, based on current network's state. caffe-1.0.0+git20180821.99bd997/examples/mnist/readme.md:189:You can refer to `$CAFFE_ROOT/src/caffe/proto/caffe.proto` for more information about layer rules and model schema. caffe-1.0.0+git20180821.99bd997/examples/mnist/readme.md-190- ############################################## caffe-1.0.0+git20180821.99bd997/examples/mnist/readme.md-198- caffe-1.0.0+git20180821.99bd997/examples/mnist/readme.md:199:Check out the comments explaining each line in the prototxt `$CAFFE_ROOT/examples/mnist/lenet_solver.prototxt`: caffe-1.0.0+git20180821.99bd997/examples/mnist/readme.md-200- ############################################## caffe-1.0.0+git20180821.99bd997/examples/net_surgery.ipynb-5481- "\n", caffe-1.0.0+git20180821.99bd997/examples/net_surgery.ipynb:5482: "To do so we translate the `InnerProduct` matrix multiplication layers of CaffeNet into `Convolutional` layers. This is the only change: the other layer types are agnostic to spatial size. Convolution is translation-invariant, activations are elementwise operations, and so on. The `fc6` inner product when carried out as convolution by `fc6-conv` turns into a 6 $\\times$ 6 filter with stride 1 on `pool5`. Back in image space this gives a classification for each 227 $\\times$ 227 box with stride 32 in pixels. Remember the equation for output map / receptive field size, output = (input - kernel_size) / stride + 1, and work out the indexing details for a clear understanding." caffe-1.0.0+git20180821.99bd997/examples/net_surgery.ipynb-5483- ] ############################################## caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py-432-# These constants define the current inline assembly state caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py:433:_NO_ASM = 0 # Outside of inline assembly block caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py:434:_INSIDE_ASM = 1 # Inside inline assembly block caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py:435:_END_ASM = 2 # Last line of inline assembly block caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py:436:_BLOCK_ASM = 3 # The whole block is an inline assembly block caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py-437- caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py-438-# Match start of assembly blocks caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py:439:_MATCH_ASM = re.compile(r'^\s*(?:asm|_asm|__asm|__asm__)' caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py-440- r'(?:\s+(volatile|__volatile__))?' ############################################## caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py-1764- self.open_parentheses = 0 caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py:1765: self.inline_asm = _NO_ASM caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py-1766- ############################################## caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py-2029- # Also check if we are starting or ending an inline assembly block. caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py:2030: if inner_block.inline_asm in (_NO_ASM, _END_ASM): caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py-2031- if (depth_change != 0 and ############################################## caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py-2034- # Enter assembly block caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py:2035: inner_block.inline_asm = _INSIDE_ASM caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py-2036- else: caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py-2037- # Not entering assembly block. If previous line was _END_ASM, caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py:2038: # we will now shift to _NO_ASM state. caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py:2039: inner_block.inline_asm = _NO_ASM caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py:2040: elif (inner_block.inline_asm == _INSIDE_ASM and caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py-2041- inner_block.open_parentheses == 0): caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py-2042- # Exit assembly block caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py:2043: inner_block.inline_asm = _END_ASM caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py-2044- ############################################## caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py-2144- if _MATCH_ASM.match(line): caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py:2145: self.stack[-1].inline_asm = _BLOCK_ASM caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py-2146- elif token == ';' or token == ')': ############################################## caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py-4627- nesting_state.Update(filename, clean_lines, line, error) caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py:4628: if nesting_state.stack and nesting_state.stack[-1].inline_asm != _NO_ASM: caffe-1.0.0+git20180821.99bd997/scripts/cpp_lint.py-4629- return ############################################## caffe-1.0.0+git20180821.99bd997/scripts/deploy_docs.sh-11- caffe-1.0.0+git20180821.99bd997/scripts/deploy_docs.sh:12:REMOTE_URL=`git config --get remote.${REMOTE}.url` caffe-1.0.0+git20180821.99bd997/scripts/deploy_docs.sh-13-BRANCH=`git rev-parse --abbrev-ref HEAD` ############################################## caffe-1.0.0+git20180821.99bd997/scripts/deploy_docs.sh-24- cd $DOCS_SITE_DIR caffe-1.0.0+git20180821.99bd997/scripts/deploy_docs.sh:25: SITE_REMOTE_URL=`git config --get remote.${REMOTE}.url` caffe-1.0.0+git20180821.99bd997/scripts/deploy_docs.sh-26- SITE_BRANCH=`git rev-parse --abbrev-ref HEAD` ############################################## caffe-1.0.0+git20180821.99bd997/scripts/gather_examples.sh-16- # Since everything is called readme.md, rename it by its dirname. caffe-1.0.0+git20180821.99bd997/scripts/gather_examples.sh:17: README_DIRNAME=`dirname $README_FILENAME` caffe-1.0.0+git20180821.99bd997/scripts/gather_examples.sh-18- DOCS_FILENAME=$GATHERED_DIR/$README_DIRNAME.md caffe-1.0.0+git20180821.99bd997/scripts/gather_examples.sh:19: mkdir -p `dirname $DOCS_FILENAME` caffe-1.0.0+git20180821.99bd997/scripts/gather_examples.sh-20- ln -s $ROOT_DIR/$README_FILENAME $DOCS_FILENAME ############################################## caffe-1.0.0+git20180821.99bd997/scripts/gather_examples.sh-26- DOCS_FILENAME=$GATHERED_DIR/$NOTEBOOK_FILENAME caffe-1.0.0+git20180821.99bd997/scripts/gather_examples.sh:27: mkdir -p `dirname $DOCS_FILENAME` caffe-1.0.0+git20180821.99bd997/scripts/gather_examples.sh-28- python scripts/copy_notebook.py $NOTEBOOK_FILENAME $DOCS_FILENAME ############################################## caffe-1.0.0+git20180821.99bd997/src/gtest/gtest-all.cpp-3980- if (value_param != NULL) { caffe-1.0.0+git20180821.99bd997/src/gtest/gtest-all.cpp:3981: printf("GetParam() = %s", value_param); caffe-1.0.0+git20180821.99bd997/src/gtest/gtest-all.cpp-3982- } ############################################## caffe-1.0.0+git20180821.99bd997/src/gtest/gtest-all.cpp-4068- } else { caffe-1.0.0+git20180821.99bd997/src/gtest/gtest-all.cpp:4069: printf(", where TypeParam = %s\n", test_case.type_param()); caffe-1.0.0+git20180821.99bd997/src/gtest/gtest-all.cpp-4070- } ############################################## caffe-1.0.0+git20180821.99bd997/tools/extra/parse_log.sh-15-fi caffe-1.0.0+git20180821.99bd997/tools/extra/parse_log.sh:16:LOG=`basename $1` caffe-1.0.0+git20180821.99bd997/tools/extra/parse_log.sh-17-sed -n '/Iteration .* Testing net/,/Iteration *. loss/p' $1 > aux.txt