Skip to content

Commit

Permalink
[FIX] fix typo in comment (apache#14787)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoxinge authored May 17, 2023
1 parent 2f863dd commit 0e24aa7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/tvm/ir/instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get_child_method(name):
return getattr(self, name)

# Create runtime pass instrument object.
# reister instance's enter_pass_ctx,exit_pass_ctx, should_run, run_before_pass and
# register instance's enter_pass_ctx,exit_pass_ctx, should_run, run_before_pass and
# run_after_pass methods to it if present.
self.__init_handle_by_constructor__(
_ffi_instrument_api.PassInstrument,
Expand Down
2 changes: 1 addition & 1 deletion src/tir/transforms/inject_rolling_buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class RollingBufferInjector : public StmtExprMutator {
std::map<Buffer, std::vector<AttrStmt>> buffer_to_attrs{};
std::map<Buffer, RollingBufferInfo> rolling_buffer_to_info{};
// The actual key type is Var, ObjectRef has been used because
// of the ambiguous overload for operator<
// of the ambiguous overload for 'operator<'
std::map<ObjectRef, std::vector<BufferRealize>> hoist_buffer_to_for{};

public:
Expand Down
2 changes: 1 addition & 1 deletion tests/python/driver/tvmc/test_parse_config_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def test_tvmc_get_configs_json_dir(tmpdir_factory, monkeypatch):
monkeypatch.setattr(tvm.driver.tvmc.config_options, "CONFIGS_JSON_DIR", None)
monkeypatch.setenv("TVM_CONFIGS_JSON_DIR", "not_a_directory")
result = get_configs_json_dir()
assert_msg = "Non-existant directory passed via TVM_CONFIGS_JSON_DIR should be ignored."
assert_msg = "Non-existent directory passed via TVM_CONFIGS_JSON_DIR should be ignored."
assert result == default_dir, assert_msg

# Set custom dir which does exist
Expand Down

0 comments on commit 0e24aa7

Please sign in to comment.