Marvelous Tensor Class
//----------------Tensor---------------- /* * Marvelous Tensor class * Car Salesman: *slaps roof of tensor class* this bad boy can fit so much fucking dimensions of any data type in it */ template<typename Dtype> class Tensor{ Shape shape_; // shape of Tensor int len_; // number of elements in Tensor_. If len_ = 0 then Tensor is undefined Dtype* tensor_; // data of tensor slice<Dtype> get() { return { Tensor_, shape_.data() }; } int scale(Dtype){ public: constructor Tensor() = default;
A dark-themed code editor displays a C++ Tensor class surrounded by large ASCII art. The joke is that the class is described like a car being enthusiastically sold: someone slaps the roof and claims it can fit an absurd amount of dimensions. This meme is used by programmers to humorously praise an overpowered, flexible, or unnecessarily elaborate data structure. EN: A dark-themed code editor displays a C++ Tensor class surrounded by large ASCII art. The joke is that the class is described like a car being enthusiastically sold: someone slaps the roof and claims it can fit an absurd amount of dimensions. This meme is used by programmers to humorously praise an overpowered, flexible, or unnecessarily elaborate data structure.
code editor / редактор кодаC++ source code / исходный код C++Tensor class / класс Tensorprogramming comments / комментарии в кодеASCII art / ASCII-артdark theme / тёмная темаmonospaced text / моноширинный текстcode syntax highlighting / подсветка синтаксиса кодаtemplate declaration / объявление шаблонаdata type / тип данных
- @profunctor_io / 3392 2019-11-10
- Type
- image
- Size
- 800×705 · 107.7 KiB
- Mood
- sarcastic, absurd
- Language
- en
- Added