diff --git a/include/core/data_type.h b/include/core/data_type.h index 282544ea..72699e22 100644 --- a/include/core/data_type.h +++ b/include/core/data_type.h @@ -7,7 +7,7 @@ class DataType { // legacy static const DataType Float32; static const DataType UInt32; - // 这一组恰好与 onnx 的类型对齐: + // These are just aligned with the type and index of onnx: // static const DataType UInt8, Int8, UInt16, Int16, Int32, Int64; static constexpr size_t sizePerElement[]{ diff --git a/include/core/graph_handler.h b/include/core/graph_handler.h index 18024f2a..121028ca 100644 --- a/include/core/graph_handler.h +++ b/include/core/graph_handler.h @@ -5,7 +5,8 @@ namespace infini { -// 借用 onnx 的定义减小传递开销,来自 onnx 但不只用于 onnx。 +// Use the indices from onnx to reduce delivery overhead, +// which comes from onnx but may be not only used for onnx. // // see https://onnx.ai/onnx/intro/concepts.html#element-type enum OnnxDType : int { diff --git a/pyinfinitensor/README.md b/pyinfinitensor/README.md deleted file mode 100644 index 0f08921e..00000000 --- a/pyinfinitensor/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# pyinfinitensor - -InfiniTensor 的 Python 前端。 - -- [ ] 从 ONNX 导入模型 -- [ ] 从 Pytorch 导入模型 -- [ ] 从 PaddlePaddle 导入模型 -- [ ] 模型导出到 ONNX -- [ ] 模型导出到 Pytorch -- [ ] 模型导出到 PaddlePaddle - -## python 工程结构及打包方法 - -本项目使用 [pyproject.toml] 文件定义,目录结构采用 [src 布局](https://setuptools.pypa.io/en/latest/userguide/package_discovery.html#src-layout),后端库会被[打包](https://setuptools.pypa.io/en/latest/userguide/datafiles.html#package-data),并支持[自动的依赖安装](https://setuptools.pypa.io/en/latest/userguide/dependency_management.html#declaring-required-dependency)。 - -参考 [setuptools 的文档](https://setuptools.pypa.io/en/latest/userguide/index.html)。