singa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wang...@apache.org
Subject [09/12] incubator-singa git commit: SINGA-108 Add Python wrapper to singa
Date Thu, 10 Dec 2015 14:05:10 GMT
SINGA-108 Add Python wrapper to singa

Add ASF license statement into:
 Makefile.am
 tool/python/singa.py
 tool/python/driver.i
 tool/python/generatepy.sh


Project: http://git-wip-us.apache.org/repos/asf/incubator-singa/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-singa/commit/94ff71ce
Tree: http://git-wip-us.apache.org/repos/asf/incubator-singa/tree/94ff71ce
Diff: http://git-wip-us.apache.org/repos/asf/incubator-singa/diff/94ff71ce

Branch: refs/heads/master
Commit: 94ff71ce59966b959c79c4d6bc1e311777aafbf5
Parents: 3e58760
Author: xiezl <xiezhongle@comp.nus.edu.sg>
Authored: Tue Dec 8 16:44:51 2015 +0800
Committer: xiezl <xiezhongle@comp.nus.edu.sg>
Committed: Tue Dec 8 16:55:24 2015 +0800

----------------------------------------------------------------------
 Makefile.am                     | 22 ++++++++++++++++++++++
 tool/python/singa.py            | 21 +++++++++++++++++++++
 tool/python/singa/driver.i      | 23 +++++++++++++++++++++++
 tool/python/singa/generatepy.sh | 22 ++++++++++++++++++++++
 4 files changed, 88 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/94ff71ce/Makefile.am
----------------------------------------------------------------------
diff --git a/Makefile.am b/Makefile.am
index 25f481c..cd9524c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,25 @@
+#/************************************************************
+#*
+#* Licensed to the Apache Software Foundation (ASF) under one
+#* or more contributor license agreements.  See the NOTICE file
+#* distributed with this work for additional information
+#* regarding copyright ownership.  The ASF licenses this file
+#* to you 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.
+#*
+#*************************************************************/
+	
+
 ACLOCAL_AMFLAGS = -I config
 AUTOMAKE_OPTIONS = foreign subdir-objects
 

http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/94ff71ce/tool/python/singa.py
----------------------------------------------------------------------
diff --git a/tool/python/singa.py b/tool/python/singa.py
index 4c41729..00af545 100755
--- a/tool/python/singa.py
+++ b/tool/python/singa.py
@@ -1,3 +1,24 @@
+/************************************************************
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements.  See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership.  The ASF licenses this file
+* to you 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.
+*
+*************************************************************/
+
 #!/usr/bin/env python
 
 

http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/94ff71ce/tool/python/singa/driver.i
----------------------------------------------------------------------
diff --git a/tool/python/singa/driver.i b/tool/python/singa/driver.i
index d1154a8..0054943 100644
--- a/tool/python/singa/driver.i
+++ b/tool/python/singa/driver.i
@@ -1,3 +1,26 @@
+/************************************************************
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements.  See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership.  The ASF licenses this file
+* to you 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.
+*
+*************************************************************/
+
+/*interface file for swig */
+
 %module driver
 %include "std_vector.i"
 %include "std_string.i"

http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/94ff71ce/tool/python/singa/generatepy.sh
----------------------------------------------------------------------
diff --git a/tool/python/singa/generatepy.sh b/tool/python/singa/generatepy.sh
index 2a9b2e4..5b224f9 100755
--- a/tool/python/singa/generatepy.sh
+++ b/tool/python/singa/generatepy.sh
@@ -1,4 +1,26 @@
+#
+#/**
+# * Copyright 2015 The Apache Software Foundation
+# *
+# * Licensed to the Apache Software Foundation (ASF) under one
+# * or more contributor license agreements.  See the NOTICE file
+# * distributed with this work for additional information
+# * regarding copyright ownership.  The ASF licenses this file
+# * to you 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.
+# */
+
 #!/usr/bin/env bash
+#The following commands are only for developers adding new py apis. 
 swig -c++ -python driver.i
 g++ -fPIC /../../../src/driver.cc driver_wrap.cxx -shared -o _driver.so \
     -L../../../.libs/ -lsinga -DMSHADOW_USE_CUDA=0 \


Mime
View raw message