提交 7a08e5e9 编写于 作者: S superjom

Squashed commit of the following:

commit eb6d0cce
Author: superjom <superjom@gmail.com>
Date:   Mon Dec 25 19:48:28 2017 +0800

    code format

commit 353e1028
Author: superjom <superjom@gmail.com>
Date:   Mon Dec 25 19:47:46 2017 +0800

    restore
上级 f59c9b74
......@@ -8,7 +8,9 @@
"release": "cross-env NODE_ENV=production node ./tool/build.js",
"build": "cross-env NODE_ENV=dev node ./tool/build.js",
"dev": "cross-env NODE_ENV=dev node tool/dev-server.js",
"lint": "./node_modules/fecs/bin/fecs --rule"
"lint": "./node_modules/fecs/bin/fecs --rule",
"precommit": "npm run lint",
"prepush": "npm run lint"
},
"engines": {
"node": ">= 6.4.0"
......@@ -52,6 +54,7 @@
"html-loader": "^0.4.4",
"html-webpack-plugin": "^2.28.0",
"http-proxy-middleware": "^0.17.4",
"husky": "^0.14.3",
"json-loader": "^0.5.4",
"opn": "^5.1.0",
"optimize-css-assets-webpack-plugin": "^1.3.2",
......
"use strict";
const webpack = require('webpack');
const rm = require('rimraf');
const ora = require('ora');
......
"use strict";
const path = require('path');
const projectPath = path.resolve(__dirname, '..');
const HtmlWebpackPlugin = require('html-webpack-plugin');
......
"use strict";
const webpack = require('webpack');
const path = require('path');
const projectPath = path.resolve(__dirname, '..');
......
"use strict";
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const path = require('path');
......
......@@ -4,13 +4,15 @@ import unittest
import random
import time
class StorageTest(unittest.TestCase):
def setUp(self):
self.dir = "./tmp/storage_test"
def test_read(self):
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.set_caption("model/scalar/min")
for i in range(10):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册