Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions include/infinicore/nn/module.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ class Module {

std::unordered_map<std::string, Module *> modules_dict() const;

const std::unordered_map<std::string, std::shared_ptr<Module>> &children() const {
return submodules_;
}

protected:
Tensor register_parameter(const std::string &name, Parameter param);

Expand Down
2 changes: 1 addition & 1 deletion xmake/qy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ local FLASH_ATTN_ROOT = get_config("flash-attn")

local INFINI_ROOT = os.getenv("INFINI_ROOT") or (os.getenv(is_host("windows") and "HOMEPATH" or "HOME") .. "/.infini")

function _qy_flash_attn_cuda_so_path()
local function _qy_flash_attn_cuda_so_path()
-- Highest priority: override the exact `.so` file to link.
local env_path = os.getenv("FLASH_ATTN_2_CUDA_SO")
if env_path and env_path ~= "" then
Expand Down
Loading