# NOT RUN {
with(tensorflow::tf$variable_scope("examples",
reuse = tensorflow::tf$AUTO_REUSE
), {
phx <- tensorflow::tf$placeholder(tensorflow::tf$int32, shape = c(4))
get_shape_list(phx) # static
tfu <- tensorflow::tf$unique(phx)
tfy <- tfu$y
get_shape_list(tfy) # dynamic
})
# }
Run the code above in your browser using DataLab