@@ -55,7 +55,7 @@ namespace jit {
55
55
56
56
using CodeImpl = interpreter::CodeImpl;
57
57
58
- // Before we translate to intepreter instructions, we do
58
+ // Before we translate to interpreter instructions, we do
59
59
// some preprocessing of the graph to turn it into a form that is closer
60
60
// to what the instructions will look like.
61
61
// In particular we:
@@ -145,12 +145,12 @@ struct InterpreterStateImpl : c10::intrusive_ptr_target {
145
145
// this holds all the tensors for this interpreter run
146
146
// we don't bother minimizing the size of this vector, since the extra
147
147
// memory used by the pointers in this will be small
148
- // instead we are very aggresive about releasing tensors when they become dead
149
- // to make sure memory management happens efficiently.
150
- // We optimize for the case where derivatives are run with retain_graph=False
151
- // in the case where it is true, then the interpreter and this array get
152
- // copied if this every becomes a bottleneck then we _should_ consider
153
- // minimizing the total number or register
148
+ // instead we are very aggressive about releasing tensors when they become
149
+ // dead to make sure memory management happens efficiently. We optimize for
150
+ // the case where derivatives are run with retain_graph=False in the case
151
+ // where it is true, then the interpreter and this array get copied if this
152
+ // every becomes a bottleneck then we _should_ consider minimizing the total
153
+ // number or register
154
154
std::vector<IValue> registers;
155
155
156
156
// A stack of objects that have been __enter__'d.
@@ -188,7 +188,7 @@ struct InterpreterStateImpl : c10::intrusive_ptr_target {
188
188
}
189
189
190
190
// relative to the end of the register list so that when we call
191
- // functions we are referring to the registers of the currenly executing
191
+ // functions we are referring to the registers of the currently executing
192
192
// function.
193
193
IValue& reg (size_t reg) {
194
194
return *(registers.end () - reg);
@@ -207,7 +207,7 @@ struct InterpreterStateImpl : c10::intrusive_ptr_target {
207
207
#endif
208
208
// Primitives for making interpreter internal state transitions.
209
209
// We maintain two local variables as the internal interpreter state:
210
- // `frame` will be the current frame that the interpreter operatos on.
210
+ // `frame` will be the current frame that the interpreter operators on.
211
211
// `inst` will the current instruction pointed to by program counter.
212
212
//
213
213
// Instruction blocks should be always declared through `INST` macro and
0 commit comments