Merge remote-tracking branch 'upstream/3.4' into merge-3.4
This commit is contained in:
commit
907743eee7
@ -112,7 +112,7 @@ if(CUDA_FOUND)
|
||||
if(CUDA_GENERATION)
|
||||
if(NOT ";${_generations};" MATCHES ";${CUDA_GENERATION};")
|
||||
string(REPLACE ";" ", " _generations "${_generations}")
|
||||
message(FATAL_ERROR "ERROR: ${_generations} Generations are suppered.")
|
||||
message(FATAL_ERROR "ERROR: ${_generations} Generations are supported.")
|
||||
endif()
|
||||
unset(CUDA_ARCH_BIN CACHE)
|
||||
unset(CUDA_ARCH_PTX CACHE)
|
||||
|
||||
@ -1949,8 +1949,7 @@ void ONNXImporter::parseReshape(LayerParams& layerParams, const opencv_onnx::Nod
|
||||
Mat blob = getBlob(node_proto, 1);
|
||||
CV_Assert(blob.type() == CV_32SC1);
|
||||
|
||||
layerParams.set("dim", DictValue::arrayInt<int*>(
|
||||
blob.ptr<int>(), blob.total() ));
|
||||
layerParams.set("dim", DictValue::arrayInt<int*>(blob.ptr<int>(), blob.total()));
|
||||
|
||||
if (layer_id.find(node_proto.input(0)) == layer_id.end()) {
|
||||
std::vector<Mat> inputs(1, getBlob(node_proto, 0)), outputs;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user