Fix some bugs in sample code snippets (#2040)
Fix some bugs in sample code snippets (#2040)


tensorflow/tensorboard,tensorflow/tensorboard,tensorflow/tensorboard,tensorflow/tensorboard,tensorflow/tensorboard,tensorflow/tensorboard,tensorflow/tensorboard