# NOT RUN {
with(tensorflow::tf$variable_scope("examples",
reuse = tensorflow::tf$AUTO_REUSE
), {
ids <- tensorflow::tf$get_variable("x", dtype = "int32", shape = 10L)
assert_rank(ids, 1)
assert_rank(ids, 1:2)
assert_rank(ids, 2)
})
# }
Run the code above in your browser using DataLab