Skip to content

Add Module Torch#213

Open
larissakl wants to merge 6 commits into
masterfrom
torch-module
Open

Add Module Torch#213
larissakl wants to merge 6 commits into
masterfrom
torch-module

Conversation

@larissakl
Copy link
Copy Markdown
Contributor

No description provided.

larissakl added 2 commits May 8, 2026 15:14
# Conflicts:
#	Modules.make
#	src/Makefile
#	src/Tools/Flf/Makefile
#	src/Tools/SpeechRecognizer/Makefile
@larissakl larissakl changed the base branch from master to rapidjson May 11, 2026 12:43
@larissakl larissakl marked this pull request as ready for review May 11, 2026 12:48
Comment thread src/Core/Assertions.hh
Comment on lines +171 to +183
// FailedAssertion("assertion", expr, function, filename, line).stream()
// << x << " " << op << " " << y;

if constexpr (std::is_same_v<T, std::nullptr_t>) {
FailedAssertion("assertion", expr, function, filename, line).stream()
<< x << " " << op << " " << "null";
}
else {
FailedAssertion("assertion", expr, function, filename, line).stream()
<< x << " " << op << " " << y;
}

std::abort();
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any suggestions for that?
I'm getting the compile error error: ambiguous overload for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘std::nullptr_t’) for everything which is like require(x, nullptr) (for example in src/Tools/Lm/LmUtilityTool.cc, line 161). This is currently my workaround, but maybe there is a better solution.

Base automatically changed from rapidjson to master May 15, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant