提交 eb6d0cce 编写于 作者: S superjom

code format

上级 353e1028
...@@ -4,13 +4,15 @@ import unittest ...@@ -4,13 +4,15 @@ import unittest
import random import random
import time import time
class StorageTest(unittest.TestCase): class StorageTest(unittest.TestCase):
def setUp(self): def setUp(self):
self.dir = "./tmp/storage_test" self.dir = "./tmp/storage_test"
def test_read(self): def test_read(self):
print 'test write' print 'test write'
self.writer = storage.StorageWriter(self.dir, sync_cycle=1).as_mode("train") self.writer = storage.StorageWriter(
self.dir, sync_cycle=1).as_mode("train")
scalar = self.writer.scalar("model/scalar/min") scalar = self.writer.scalar("model/scalar/min")
# scalar.set_caption("model/scalar/min") # scalar.set_caption("model/scalar/min")
for i in range(10): for i in range(10):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册