airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject airavata-sandbox git commit: adding missing files
Date Tue, 27 Jun 2017 16:37:05 GMT
Repository: airavata-sandbox
Updated Branches:
  refs/heads/master 4854787b0 -> d1c7e1243


adding missing files


Project: http://git-wip-us.apache.org/repos/asf/airavata-sandbox/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-sandbox/commit/d1c7e124
Tree: http://git-wip-us.apache.org/repos/asf/airavata-sandbox/tree/d1c7e124
Diff: http://git-wip-us.apache.org/repos/asf/airavata-sandbox/diff/d1c7e124

Branch: refs/heads/master
Commit: d1c7e12431b2329b39bb1ac89ec19936ac789a2f
Parents: 4854787
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Tue Jun 27 12:37:00 2017 -0400
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Tue Jun 27 12:37:00 2017 -0400

----------------------------------------------------------------------
 helix-playground/src/main/resources/code_tf.py  | 30 ++++++++++++++++++++
 helix-playground/src/main/resources/job_tf.pbs  | 18 ++++++++++++
 .../src/main/resources/ssh/id_rsa.pub           |  2 ++
 .../src/main/resources/ssh/known_hosts          |  0
 4 files changed, 50 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-sandbox/blob/d1c7e124/helix-playground/src/main/resources/code_tf.py
----------------------------------------------------------------------
diff --git a/helix-playground/src/main/resources/code_tf.py b/helix-playground/src/main/resources/code_tf.py
new file mode 100644
index 0000000..221e960
--- /dev/null
+++ b/helix-playground/src/main/resources/code_tf.py
@@ -0,0 +1,30 @@
+import tensorflow as tf
+import numpy as np
+import numpy.polynomial.polynomial as poly
+
+from random import randint
+
+tf.reset_default_graph()
+num_neurons = 5000
+
+indices = []
+values = []
+for i in range(num_neurons):
+    for j in range(num_neurons):
+        x  = 3
+        if i != j:
+            number = randint(0, 99)
+            if number < 5:
+                indices.append([i, j])
+                values.append(1.0/5)
+
+connections = tf.SparseTensor(indices=indices, values=values, dense_shape=[num_neurons, num_neurons])
+
+neuron_values = tf.Variable(np.ones(num_neurons), dtype=tf.float32)
+
+mul_product = tf.sparse_tensor_dense_matmul(connections, tf.reshape(neuron_values, shape=(num_neurons,
1)))
+
+sess = tf.Session()
+sess.run(tf.global_variables_initializer())
+
+output = sess.run(mul_product)
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/airavata-sandbox/blob/d1c7e124/helix-playground/src/main/resources/job_tf.pbs
----------------------------------------------------------------------
diff --git a/helix-playground/src/main/resources/job_tf.pbs b/helix-playground/src/main/resources/job_tf.pbs
new file mode 100644
index 0000000..a4d3485
--- /dev/null
+++ b/helix-playground/src/main/resources/job_tf.pbs
@@ -0,0 +1,18 @@
+#!/bin/bash
+# file to submit non interactive jobs to bigred2
+
+#PBS -l nodes=1:ppn=16
+#PBS -l gres=ccm
+#PBS -q debug_gpu
+#PBS -l walltime=00:30:00
+
+#PBS -o STDOUT.txt
+#PBS -e STDERR.txt
+
+#PBS -m bea
+#PBS -M supun.nakandala@gmail.com
+
+module load ccm
+module load anaconda2/4.2.0
+source activate tensorflow_env
+ccmrun python ~/airavata/code_tf.py
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/airavata-sandbox/blob/d1c7e124/helix-playground/src/main/resources/ssh/id_rsa.pub
----------------------------------------------------------------------
diff --git a/helix-playground/src/main/resources/ssh/id_rsa.pub b/helix-playground/src/main/resources/ssh/id_rsa.pub
new file mode 100644
index 0000000..c3ac0b0
--- /dev/null
+++ b/helix-playground/src/main/resources/ssh/id_rsa.pub
@@ -0,0 +1,2 @@
+
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCr9VP22p0I+2W5o/klPv/OvfTihvcBQwZXKPrSLFF+OB9nVNtIfDDETIwwex7mknn3Kks1jFvEdKMrvRjOFeFInDv3N40LjohHu4v2tiawAON7MOLpz/iX5dWp0wteixlDKfGe7PAEMAk054kLSDiB3em2zBK4d9ApedA5k2JG1dmAsNK0KkbfgFPd5+iXrzgTg4XiefHQoaCSUyS7w6t8645djbYOP+b+SJtgslaf2RqeoBVvrA6YQJE1pUYjcm9yL4KwyqaPo+N/2XZ6xys5+WN8svtL3uRduENU1MQSTpdFq+GLCY4SgLMFgLJKoxHjcjPRfKyE/eYk1gQA7b/Z
snakanda@149-161-141-51.dhcp-bl.indiana.edu

http://git-wip-us.apache.org/repos/asf/airavata-sandbox/blob/d1c7e124/helix-playground/src/main/resources/ssh/known_hosts
----------------------------------------------------------------------
diff --git a/helix-playground/src/main/resources/ssh/known_hosts b/helix-playground/src/main/resources/ssh/known_hosts
new file mode 100644
index 0000000..e69de29


Mime
View raw message