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
2 changes: 2 additions & 0 deletions src/relay/transforms/compiler_function_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ class CallRewriter : public MixedModeMutator {

} // namespace

GlobalSymbolCache::~GlobalSymbolCache() = default;

GlobalVar ExistingGlobalSymbolCache::GetGlobalSymbol(const Function& function) {
Optional<String> opt_global_symbol = function->GetAttr<String>(tvm::attr::kGlobalSymbol);
ICHECK(opt_global_symbol.defined())
Expand Down
1 change: 1 addition & 0 deletions src/relay/transforms/compiler_function_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ namespace transforms {
*/
class GlobalSymbolCache {
public:
virtual ~GlobalSymbolCache();
Copy link
Member

Choose a reason for hiding this comment

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

nit: for simplicity, we have the implmentation inlined here

Suggested change
virtual ~GlobalSymbolCache();
virtual ~GlobalSymbolCache() = default;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nit: for simplicity, we have the implmentation inlined here

Thanks, I did consider that. Normally I prefer to keep as many details in the .cc file as possible, for better modularity.

virtual GlobalVar GetGlobalSymbol(const Function& function) = 0;
};

Expand Down