zhongkaifu / Seq2SeqSharp

Seq2SeqSharp is a tensor based fast & flexible deep neural network framework written by .NET (C#). It has many highlighted features, such as automatic differentiation, different network types (Transformer, LSTM, BiLSTM and so on), multi-GPUs supported, cross-platforms (Windows, Linux, x86, x64, ARM), multimodal model for text and images and so on.
Other
193 stars 38 forks source link

Normalizing and simplifying Cuda precompilation logging #77

Closed zsogitbe closed 8 months ago

zsogitbe commented 8 months ago

Replacing Console write with Logger write. The library should not write directly to the Console. Simplification: precompileProgressWriter function is then not needed.

zsogitbe commented 8 months ago

Hi @zsogitbe ,

What's this Callback used for ? I didn't find any code uses it in the project. Can you please point it out ? Thanks.

There is no example in the distribution yet which uses this callback. The callback mechanism is important if you want to allow the use of the library in professional applications. For example, a Windows Forms application could use the library and present the messages with this callback nicely in a text box. Writing in the Console would not work at all in this case. But even in an other type of Console application would this be important where the application would print the messages, for example, on different parts of the screen. Etc.