Thanks, I did Stackoverflow in my MAc in the terminal and I still got the error. Although, I ran some code of RStudio Keras and it ran a few lines of RStudio and it did run perfectly (code:
library(tensorflow) #install.packages("tfautograph")
library(tfautograph)
library(keras) #install.packages("tfdatasets")
library(tfdatasets)
tf$executing_eagerly()
x <- matrix(2, ncol = 1, nrow = 1)
m <- tf$matmul(x, x)
m
a <- tf$constant(matrix(c(1,2,3,4), ncol = 2))
a)