提交 7c7c17dc 编写于 作者: 康行天下 提交者: daminglu

Update README: C++ SDK Example (#200)

上级 bbc871a0
......@@ -102,17 +102,17 @@ Here is the C++ SDK identical to the Python SDK example above:
```c++
#include <cstdlib>
#include <string>
#include "visualdl/sdk.h"
#include "visualdl/logic/sdk.h"
namespace vs = visualdl;
namepsace cp = visualdl::components;
namespace cp = visualdl::components;
int main() {
const std::string dir = "./tmp";
vs::LogWriter logger(dir, 10);
logger.SetMode("train");
auto tablet = logger.NewTablet("scalars/scalar0");
auto tablet = logger.AddTablet("scalars/scalar0");
cp::Scalar<float> scalar0(tablet);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册