gavril0

Results 10 issues of gavril0

It seems impossible to cast NA when a new variable containing only NA is created within SQL. More precisely, `CAST(expr AS type)` in a `SELECT` query always returns logical NA...

I try to edit NppToR `quickkey.txt` file to get some R commands that I use repeatedly when developing a package: ``` F12=detach(2, unload=TRUE) ^F12=install(upgrade="never") +F12=load_all("./", reset=TRUE, export_all = TRUE) ```...

Caching chunks that create an instance of torch module or of a torch dataset yields an `external pointer is not valid` error when the instance is used in another chunk....

### Add Link Link to the tutorial: https://pytorch.org/tutorials/intermediate/seq2seq_translation_tutorial.html ### Describe the bug The tutorial was markedly changed in June 2023, see commit 6c03bb3bbe17100a3b45e0c92c564911e24ab796 which aimed at fixing the implementation of...

bug
core

The standard dataset_generator for MNIST dataset does not include a `.getbatch()` method and, as a result, getting a batch is quite slow, at least on CPU. ``` # dataset root...

Using a RNN with packed sequences where `enforce_sorted=TRUE` gives an error. Let's define a 3d tensor width dimensions `(batch_size, max_len, embedding_size)` that represent two embedded sequences of lengths 4 and...

Selecting a single element of a tensor yields a tensor of size and dimension 0! Let's define a torch tensor (size does not matter): ``` > x x torch_tensor 1...

Caching torch objects in Rmarkdown document them give errors (see the [issue](https://github.com/yihui/knitr/issues/2339) in `knitr` repository for more details). The underlying issue is that torch objects are implemented with classes (R6/Rcpp)...

I found that making plot with`image_graph` device is very slow. Making plots in temporary files with `png` (or `jpeg`) and reading these files with `image_read` is x15 faster! ![Image](https://github.com/user-attachments/assets/75e9f128-9fad-41cb-853d-7628822be9ee) **Figure**...

I suggest adding a verbose argument with `interactive()` or `TRUE` as default value to `av_video_images` and transmit it to `ave_encod_video` inside the function. ``` av_video_images