summaryrefslogtreecommitdiff
path: root/ot/gpu/cudamat/cudamat/learn.py
diff options
context:
space:
mode:
Diffstat (limited to 'ot/gpu/cudamat/cudamat/learn.py')
-rw-r--r--ot/gpu/cudamat/cudamat/learn.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/ot/gpu/cudamat/cudamat/learn.py b/ot/gpu/cudamat/cudamat/learn.py
deleted file mode 100644
index 741ca13..0000000
--- a/ot/gpu/cudamat/cudamat/learn.py
+++ /dev/null
@@ -1,21 +0,0 @@
-import os
-
-import ctypes as ct
-import numpy as np
-
-from cudamat import load_library, generate_exception
-
-_cudalearn = load_library('libcudalearn')
-
-_cudalearn.mult_by_sigmoid_deriv.restype = ct.c_int
-
-def mult_by_sigmoid_deriv(target, acts):
- """
- target = target * acts * (1 - acts)
-
- Useful for doing backprop in neural networks with logistic units.
- """
-
- err_code = _cudalearn.mult_by_sigmoid_deriv(target.p_mat, acts.p_mat)
- if err_code:
- raise generate_exception(err_code)