As_tensor error in keras

I am using keras/tensorflow in R and have an issue with as_tensor.

My test data example looks like :

X1 X2
-1 9837
-1 10000
-1 10154
-1 10000
-1 9894
-1 10000

str( training_ds[,1:2])
‘data.frame’: 109819 obs. of 2 variables:
$ X1: int -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 …
$ X2: int 10031 10000 9880 10000 9996 10000 10252 10000 9998 10000 …

When I run, as_tensor, I receive the error :
Error: basic_string::substr: __pos (which is 2354882) > this->size() (which is 1177900)

I am able to run as_tensor on the individual columns, but not on the whole dataset. All of the data is the same type, int. Also, I made sure I do have any NA.

How do I debug this?

Thanks

Windows
R/Keras/Tensorflow
NVIDIA GeForce GTX 1650 Ti with Max-Q Design
Driver Version 517.13
tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX AVX2

I tensorflow/core/common_runtime/gpu/gpu_device.cc:1510] Created device /device:GPU:0 with 2143 MB memory: → device: 0, name: NVIDIA GeForce GTX 1650 Ti with Max-Q Design, pci bus id: 0000:01:00.0, compute capability: 7.5
TensorFlow built with CUDA: TRUE

tensorflow/core/common_runtime/gpu/gpu_device.cc:1510] Created device /device:GPU:0 with 2143 MB memory: → device: 0, name: NVIDIA GeForce GTX 1650 Ti with Max-Q Design, pci bus id: 0000:01:00.0, compute capability: 7.5

tensorflow::tf_version()
[1] ‘2.6’

Hi @Kbulls1 ,
This forum talks about issues related to TensorRT.
Request you to raise the issue on Keras/Tensorflow Forum.
Thanks