diff --git a/demo/keras/keras_mnist_demo.py b/demo/keras/keras_mnist_demo.py index 0a7bd8f834bbe7b6d6c95416b63e1618b022fc65..1397adfe6d20f01fe1c8872f601dae754e0c26a0 100644 --- a/demo/keras/keras_mnist_demo.py +++ b/demo/keras/keras_mnist_demo.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= + from __future__ import print_function import keras from keras.datasets import mnist diff --git a/demo/mxnet/mxnet_demo.py b/demo/mxnet/mxnet_demo.py index b598471365747c7c1be48055169dcd08efb26ab0..61d74dad369464a3ba12fec993199c5ef5b8d09e 100644 --- a/demo/mxnet/mxnet_demo.py +++ b/demo/mxnet/mxnet_demo.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= + import logging import mxnet as mx diff --git a/demo/paddle/cifar10_image_classification_vgg.py b/demo/paddle/cifar10_image_classification_vgg.py index e21023034d8c16c4a397dba6fc5bb2529a6c1269..412d52aca8b2c6b15cc0246457d1ea89f9c62652 100644 --- a/demo/paddle/cifar10_image_classification_vgg.py +++ b/demo/paddle/cifar10_image_classification_vgg.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= + from __future__ import print_function import sys diff --git a/demo/pytorch/pytorch_cifar10.py b/demo/pytorch/pytorch_cifar10.py index 4915a932ce792be5235de22856cb9e77500ee10a..d9d0d36538efe56ec87d3e0580da558bbc3838de 100644 --- a/demo/pytorch/pytorch_cifar10.py +++ b/demo/pytorch/pytorch_cifar10.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= + import torch import torchvision import torchvision.transforms as transforms diff --git a/demo/vdl_create_scratch_log b/demo/vdl_create_scratch_log index 373e4f3e9c2c848b96f2f7f8021102a1c4951d3c..b10e481ca00affc02685b76e5ea9ccaca268694c 100644 --- a/demo/vdl_create_scratch_log +++ b/demo/vdl_create_scratch_log @@ -1,4 +1,20 @@ #!/user/bin/env python + +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= + import os import random diff --git a/setup.py b/setup.py index ccd92df599f54fae86257e825a5a8c0cf69b37fc..8c2d95c64f1b8a8382dc731e3a582cb762ee9824 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= + from __future__ import absolute_import import os diff --git a/visualdl/__init__.py b/visualdl/__init__.py index 0b55c25f761449d34e3a8aa221d63dd0bc75221d..99333642f19263dc97bfeea31cb0302b314e46bf 100644 --- a/visualdl/__init__.py +++ b/visualdl/__init__.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= + from __future__ import absolute_import import os diff --git a/visualdl/python/__init__.py b/visualdl/python/__init__.py index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..eabf5f1e0d449273054645bb9840a535dee4981a 100644 --- a/visualdl/python/__init__.py +++ b/visualdl/python/__init__.py @@ -0,0 +1,14 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= diff --git a/visualdl/python/cache.py b/visualdl/python/cache.py index 011b1cdeb4523b8e2a26524681ba489e80f0c450..16bff11f42de62b2d1964d1e0b710dcd56b52a02 100644 --- a/visualdl/python/cache.py +++ b/visualdl/python/cache.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= + import time diff --git a/visualdl/python/storage.py b/visualdl/python/storage.py index 7cfd6445a423487f497cb6c9f8e4d845d53150a2..9e39a22ec2fb97197634077fe3fed0c475e4b9a0 100644 --- a/visualdl/python/storage.py +++ b/visualdl/python/storage.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= + from __future__ import absolute_import from visualdl import core diff --git a/visualdl/python/test_storage.py b/visualdl/python/test_storage.py index e797ede230577013f2e404d7fab88702e03e7e1f..339a35e320777fcf2addaf1753086e3ae462c4f5 100644 --- a/visualdl/python/test_storage.py +++ b/visualdl/python/test_storage.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= + from __future__ import print_function import pprint import sys diff --git a/visualdl/server/__init__.py b/visualdl/server/__init__.py index 51523817541714b0c6024c855687e07a35faccf0..65a494a1bb03534c191c0471e0894d66f8c986d2 100644 --- a/visualdl/server/__init__.py +++ b/visualdl/server/__init__.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= + from __future__ import absolute_import from . import log diff --git a/visualdl/server/graph.py b/visualdl/server/graph.py index 0fa048d9d3d5411be4ed9febf1dfedbfd9fed220..24f6d9f93154b8d83d7d599d5fadff61c21c6f1c 100644 --- a/visualdl/server/graph.py +++ b/visualdl/server/graph.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= + from __future__ import absolute_import import json import os diff --git a/visualdl/server/graph_test.py b/visualdl/server/graph_test.py index be0792a018cbc192d56c1308dcb1049924dc9eb5..433cc576331796c26f3a61fc2863c3d244cefc83 100644 --- a/visualdl/server/graph_test.py +++ b/visualdl/server/graph_test.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= + from __future__ import absolute_import import unittest diff --git a/visualdl/server/graphviz_graph.py b/visualdl/server/graphviz_graph.py index b9bf850d4ed86d57bcdc092b94ed243c9ba9fb07..04e0d7945ffc9d6816cefb0201ec9ba04e404b09 100644 --- a/visualdl/server/graphviz_graph.py +++ b/visualdl/server/graphviz_graph.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= + from __future__ import print_function import random import subprocess diff --git a/visualdl/server/lib.py b/visualdl/server/lib.py index 0fb383219b69ecb9b97c29e7fbaac5da3036215b..155ebe2ef7f9c00b4187ca1de2054ebe9089e666 100644 --- a/visualdl/server/lib.py +++ b/visualdl/server/lib.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= + from __future__ import absolute_import import re import sys diff --git a/visualdl/server/lib_test.py b/visualdl/server/lib_test.py index 696359f9f4b78697ea95467959ee454397d83c26..7f525d5fa13b873e658029b1ddefc6b737b2e3b5 100644 --- a/visualdl/server/lib_test.py +++ b/visualdl/server/lib_test.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= + from __future__ import print_function import pprint import unittest diff --git a/visualdl/server/log.py b/visualdl/server/log.py index 5199e96e2dc3b8315e0ada1e424873f01260bd26..5ce2f500d087a09b1a2856e4eabf194859340132 100644 --- a/visualdl/server/log.py +++ b/visualdl/server/log.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= + import logging logger = logging diff --git a/visualdl/server/mock/__init__.py b/visualdl/server/mock/__init__.py index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..eabf5f1e0d449273054645bb9840a535dee4981a 100644 --- a/visualdl/server/mock/__init__.py +++ b/visualdl/server/mock/__init__.py @@ -0,0 +1,14 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= diff --git a/visualdl/server/mock/data.py b/visualdl/server/mock/data.py index 23af7da16fdb8248365c2d84dada64a76ebe7955..29cb235bb6f33e083cce95655fc6a7872fc19163 100644 --- a/visualdl/server/mock/data.py +++ b/visualdl/server/mock/data.py @@ -1,3 +1,19 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= + + def sequence_data(): return [[1465980660.726887, 1, 0.07000000029802322], [1465980660.767164, 2, 0.18000000715255737], diff --git a/visualdl/server/mock/tags.py b/visualdl/server/mock/tags.py index f37de69c1a30701f74e000f2b32ae4d84fee1419..54d017c32e6c152f5d964bac46117902a633c665 100644 --- a/visualdl/server/mock/tags.py +++ b/visualdl/server/mock/tags.py @@ -1,3 +1,19 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= + + def data(): return { "test": { diff --git a/visualdl/server/setup.py b/visualdl/server/setup.py index a864d225f6ee44f7368eb31b790f4304f043d73c..0364e726a56284d8a39f953a5aed45ca7022f517 100644 --- a/visualdl/server/setup.py +++ b/visualdl/server/setup.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= + from setuptools import setup packages = [ diff --git a/visualdl/server/storage_mock.py b/visualdl/server/storage_mock.py index a2c237a80f41f6ab13fc86c6f56f0f495737bc19..43457a9de1929990b9048b4a9a5940130b91c60e 100644 --- a/visualdl/server/storage_mock.py +++ b/visualdl/server/storage_mock.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= + import random import numpy as np diff --git a/visualdl/server/visualDL b/visualdl/server/visualDL index 32a6d5d5010020f79dd3eb43fb95604604fa5ba8..9e931c59b998f54860d4a88abcb71f8413f17e60 100644 --- a/visualdl/server/visualDL +++ b/visualdl/server/visualDL @@ -1,5 +1,20 @@ #!/user/bin/env python +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= + import json import os import time diff --git a/visualdl/test.py b/visualdl/test.py index d8aff108607f4dc9ccd98724beb5b1931a530927..91d55c17cc2bb2797409f15a2cbe7c6042e27547 100644 --- a/visualdl/test.py +++ b/visualdl/test.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ======================================================================= + import sys import unittest