Guest User

Untitled

a guest
Jan 22nd, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. library(tensorflow)
  2.  
  3. sess <- tf$Session()
  4. x <- tf$constant(8)
  5. y <- tf$constant(5)
  6. tf_add <- x + y
  7. writer <- tf$summary$FileWriter("path/to/log-directory", sess$graph)
  8. sess$run(tf_add)
  9. sess$close()
  10. tensorboard(log_dir = "path/to/log-directory")
Add Comment
Please, Sign In to add comment