diff --git a/visualdl/logic/im.cc b/visualdl/logic/im.cc index 94881244f8d5925e2a4cf3e0ac71169a5fdfdb1f..624fbfbba50fe623cc4226591e336fbb66af9552 100644 --- a/visualdl/logic/im.cc +++ b/visualdl/logic/im.cc @@ -25,27 +25,6 @@ int ReserviorSample(int num_samples, int num_records) { return -1; } -// IM::IM(StorageBase::Type type, StorageBase::Mode mode) { -// switch (type) { -// case StorageBase::Type::kMemory: { -// storage_.reset(new MemoryStorage); -// } break; -// default: -// CHECK(false) << "Unsupported storage kind " << type; -// } - -// switch (mode) { -// case StorageBase::Mode::kRead: -// dynamic_cast(storage_.get())->StartReadService(500); -// break; -// case StorageBase::Mode::kWrite: -// dynamic_cast(storage_.get())->StartWriteSerice(500); -// break; -// default: -// break; -// } -// } - void IM::SetPersistDest(const std::string &path) { CHECK(storage_->mutable_data()->dir().empty()) << "duplicate set storage's path"; diff --git a/visualdl/python/summary.py b/visualdl/python/summary.py index 19a459b67b9c0bded263dd3cb62730375d799b94..db9cb1d2b5b81f0567b6effcd78e3fa910c74af4 100644 --- a/visualdl/python/summary.py +++ b/visualdl/python/summary.py @@ -103,15 +103,3 @@ def scalar(im, tag, dtype='float'): } obj = dtype2obj[dtype](im) return _Scalar(obj) - - -# def read_scalar(tag, dtype='float'): -# tablet = core.im().tablet(tag) -# dtype2obj = { -# 'float': tablet.as_float_scalar, -# 'double': tablet.as_double_scalar, -# 'int32': tablet.as_int32_scalar, -# 'int64': tablet.as_int64_scalar, -# } -# obj = dtype2obj[dtype]() -# return _Scalar(obj)