-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[misc] move func decl to separate headers
- Loading branch information
Showing
7 changed files
with
202 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Licensed to the Apache Software Foundation (ASF) under one | ||
// or more contributor license agreements. See the NOTICE file | ||
// distributed with this work for additional information | ||
// regarding copyright ownership. The ASF licenses this file | ||
// to you under the Apache License, Version 2.0 (the | ||
// "License"); you may not use this file except in compliance | ||
// with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, | ||
// software distributed under the License is distributed on an | ||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
// KIND, either express or implied. See the License for the | ||
// specific language governing permissions and limitations | ||
// under the License. | ||
|
||
#ifndef _ST_HPC_PPL_NN_PYTHON_ARM_PY_ARM_H_ | ||
#define _ST_HPC_PPL_NN_PYTHON_ARM_PY_ARM_H_ | ||
|
||
#include "pybind11/pybind11.h" | ||
|
||
namespace ppl { namespace nn { namespace python { namespace arm { | ||
|
||
void RegisterEngineFactory(pybind11::module*); | ||
void RegisterEngineOptions(pybind11::module*); | ||
void RegisterEngine(pybind11::module*); | ||
|
||
}}}} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Licensed to the Apache Software Foundation (ASF) under one | ||
// or more contributor license agreements. See the NOTICE file | ||
// distributed with this work for additional information | ||
// regarding copyright ownership. The ASF licenses this file | ||
// to you under the Apache License, Version 2.0 (the | ||
// "License"); you may not use this file except in compliance | ||
// with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, | ||
// software distributed under the License is distributed on an | ||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
// KIND, either express or implied. See the License for the | ||
// specific language governing permissions and limitations | ||
// under the License. | ||
|
||
#ifndef _ST_HPC_PPL_NN_PYTHON_CUDA_PY_CUDA_H_ | ||
#define _ST_HPC_PPL_NN_PYTHON_CUDA_PY_CUDA_H_ | ||
|
||
#include "pybind11/pybind11.h" | ||
|
||
namespace ppl { namespace nn { namespace python { namespace cuda { | ||
|
||
void RegisterEngineFactory(pybind11::module*); | ||
void RegisterEngineOptions(pybind11::module*); | ||
void RegisterEngine(pybind11::module*); | ||
|
||
}}}} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Licensed to the Apache Software Foundation (ASF) under one | ||
// or more contributor license agreements. See the NOTICE file | ||
// distributed with this work for additional information | ||
// regarding copyright ownership. The ASF licenses this file | ||
// to you under the Apache License, Version 2.0 (the | ||
// "License"); you may not use this file except in compliance | ||
// with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, | ||
// software distributed under the License is distributed on an | ||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
// KIND, either express or implied. See the License for the | ||
// specific language governing permissions and limitations | ||
// under the License. | ||
|
||
#ifndef _ST_HPC_PPL_NN_PYTHON_RISCV_PY_RISCV_H_ | ||
#define _ST_HPC_PPL_NN_PYTHON_RISCV_PY_RISCV_H_ | ||
|
||
#include "pybind11/pybind11.h" | ||
|
||
namespace ppl { namespace nn { namespace python { namespace riscv { | ||
|
||
void RegisterEngineFactory(pybind11::module*); | ||
void RegisterEngineOptions(pybind11::module*); | ||
void RegisterEngine(pybind11::module*); | ||
|
||
}}}} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Licensed to the Apache Software Foundation (ASF) under one | ||
// or more contributor license agreements. See the NOTICE file | ||
// distributed with this work for additional information | ||
// regarding copyright ownership. The ASF licenses this file | ||
// to you under the Apache License, Version 2.0 (the | ||
// "License"); you may not use this file except in compliance | ||
// with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, | ||
// software distributed under the License is distributed on an | ||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
// KIND, either express or implied. See the License for the | ||
// specific language governing permissions and limitations | ||
// under the License. | ||
|
||
#ifndef _ST_HPC_PPL_NN_PYTHON_X86_PY_X86_H_ | ||
#define _ST_HPC_PPL_NN_PYTHON_X86_PY_X86_H_ | ||
|
||
#include "pybind11/pybind11.h" | ||
|
||
namespace ppl { namespace nn { namespace python { namespace x86 { | ||
|
||
void RegisterEngineFactory(pybind11::module*); | ||
void RegisterEngineOptions(pybind11::module*); | ||
void RegisterEngine(pybind11::module*); | ||
|
||
}}}} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Licensed to the Apache Software Foundation (ASF) under one | ||
// or more contributor license agreements. See the NOTICE file | ||
// distributed with this work for additional information | ||
// regarding copyright ownership. The ASF licenses this file | ||
// to you under the Apache License, Version 2.0 (the | ||
// "License"); you may not use this file except in compliance | ||
// with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, | ||
// software distributed under the License is distributed on an | ||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
// KIND, either express or implied. See the License for the | ||
// specific language governing permissions and limitations | ||
// under the License. | ||
|
||
#ifndef _ST_HPC_PPL_NN_PYTHON_ONNX_PY_ONNX_H_ | ||
#define _ST_HPC_PPL_NN_PYTHON_ONNX_PY_ONNX_H_ | ||
|
||
#include "pybind11/pybind11.h" | ||
|
||
namespace ppl { namespace nn { namespace python { namespace onnx { | ||
|
||
void RegisterRuntimeBuilderResources(pybind11::module*); | ||
void RegisterRuntimeBuilder(pybind11::module*); | ||
void RegisterRuntimeBuilderFactory(pybind11::module*); | ||
|
||
}}}} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Licensed to the Apache Software Foundation (ASF) under one | ||
// or more contributor license agreements. See the NOTICE file | ||
// distributed with this work for additional information | ||
// regarding copyright ownership. The ASF licenses this file | ||
// to you under the Apache License, Version 2.0 (the | ||
// "License"); you may not use this file except in compliance | ||
// with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, | ||
// software distributed under the License is distributed on an | ||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
// KIND, either express or implied. See the License for the | ||
// specific language governing permissions and limitations | ||
// under the License. | ||
|
||
#ifndef _ST_HPC_PPL_NN_PYTHON_PMX_PY_PMX_H_ | ||
#define _ST_HPC_PPL_NN_PYTHON_PMX_PY_PMX_H_ | ||
|
||
#include "pybind11/pybind11.h" | ||
|
||
namespace ppl { namespace nn { namespace python { namespace pmx { | ||
|
||
void RegisterRuntimeBuilderResources(pybind11::module*); | ||
void RegisterRuntimeBuilder(pybind11::module*); | ||
void RegisterRuntimeBuilderFactory(pybind11::module*); | ||
void RegisterLoadModelOptions(pybind11::module*); | ||
void RegisterSaveModelOptions(pybind11::module*); | ||
|
||
}}}} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters