File tree Expand file tree Collapse file tree 2 files changed +4
-64
lines changed Expand file tree Collapse file tree 2 files changed +4
-64
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -327,10 +327,10 @@ struct PreprocessGraph {
327
327
328
328
};
329
329
330
- // previously the interpreter worked with at::Retainable values,
331
- // which are annoying to handle since 99% of values are at::Tensor anyway
332
- // instead we create a fake subclass of TensorImpl that can be subclassed
333
- // to hold arbitrary things
330
+ // Sometimes we want to pass things that are not tensors. Instead of
331
+ // coming up with some "superclass" for tensor, which is annoying since
332
+ // 99% of values are at::Tensor, we instead we create a fake subclass of
333
+ // TensorImpl that can be subclassed to hold arbitrary things
334
334
// Note: this is currently unused but will probably be useful in the future,
335
335
// so we keep it around
336
336
struct ContainerTensor : public at ::TensorImpl {
You can’t perform that action at this time.
0 commit comments