forked from pytorch/executorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and fix docs (namespaces, consistency) (pytorch#6084)
Summary: Audit all instances of `\bexec_aten::` and `\btorch::` under `docs/`, updating where appropriate. The only remaining `torch::` instances are for kernels, which I didn't get a chance to migrate before v0.4.0. Also: - Update the LLM Manual code to be consistent between the doc and main.cpp - Fix some LLM Manual issues: point to the latest release, and "main.cpp" instead of "main.h" Reviewed By: mergennachin Differential Revision: D64152344
- Loading branch information
1 parent
61c501c
commit 97a5da0
Showing
11 changed files
with
194 additions
and
160 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,27 @@ | ||
cmake_minimum_required(VERSION 3.19) | ||
project(nanogpt_runner) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED True) | ||
|
||
# Set options for executorch build. | ||
option(EXECUTORCH_BUILD_EXTENSION_DATA_LOADER "" ON) | ||
option(EXECUTORCH_BUILD_EXTENSION_MODULE "" ON) | ||
option(EXECUTORCH_BUILD_EXTENSION_TENSOR "" ON) | ||
option(EXECUTORCH_BUILD_KERNELS_OPTIMIZED "" ON) | ||
|
||
# Include the executorch subdirectory. | ||
add_subdirectory( | ||
${CMAKE_CURRENT_SOURCE_DIR}/third-party/executorch | ||
${CMAKE_BINARY_DIR}/executorch | ||
) | ||
|
||
add_executable(nanogpt_runner main.cpp) | ||
target_link_libraries( | ||
nanogpt_runner | ||
PRIVATE executorch | ||
extension_module_static # Provides the Module class | ||
extension_tensor # Provides the TensorPtr class | ||
optimized_native_cpu_ops_lib # Provides baseline cross-platform | ||
# kernels | ||
) |
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
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
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
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
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
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
Oops, something went wrong.