mirror of
https://github.com/marian-nmt/marian.git
synced 2024-09-17 09:47:34 +03:00
Is "ChainableStack" the most appropriate name for this data structure?
This commit is contained in:
parent
a875db7333
commit
6c4a6e0eb4
@ -49,6 +49,12 @@ struct Chainable {
|
||||
};
|
||||
};
|
||||
|
||||
// XXX Marcin, is ChainableStack the most appropriate name?
|
||||
// AFAIK, this is never used as a FILO data structure.
|
||||
// If so, perhaps "Tape" or "ChainLinks" or "ChainableList" might be more apropos?
|
||||
//
|
||||
// Naumann (2012) uses "tape" to refer to this data structure.
|
||||
// -- The Art of Differentiating Computer Programs: An Introduction to Algorithmic Differentiation, Naumann (2012)
|
||||
typedef std::vector<Chainable<Tensor>*> ChainableStack;
|
||||
typedef std::shared_ptr<ChainableStack> ChainableStackPtr;
|
||||
typedef std::shared_ptr<Chainable<Tensor>> ChainPtr;
|
||||
|
Loading…
Reference in New Issue
Block a user