HomeSort by relevance Sort by last modified time
    Searched refs:np_features (Results 1 - 8 of 8) sorted by null

  /external/tensorflow/tensorflow/python/kernel_tests/
softsign_op_test.py 32 def _npSoftsign(self, np_features):
33 return np_features / (1 + np.abs(np_features))
35 def _testSoftsign(self, np_features, use_gpu=False):
36 np_softsign = self._npSoftsign(np_features)
38 softsign = nn_ops.softsign(np_features)
relu_op_test.py 44 def _npRelu(self, np_features):
45 return np.maximum(np_features, np.zeros(np_features.shape))
54 def _testRelu(self, np_features, use_gpu=False):
55 np_relu = self._npRelu(np_features)
57 relu = nn_ops.relu(np_features)
156 def _npRelu6(self, np_features):
157 sixes = np.copy(np_features)
160 np.maximum(np_features, np.zeros(np_features.shape)), sixes
    [all...]
softplus_op_test.py 33 def _npSoftplus(self, np_features):
34 np_features = np.asarray(np_features)
35 zero = np.asarray(0).astype(np_features.dtype)
36 return np.logaddexp(zero, np_features)
38 def _testSoftplus(self, np_features, use_gpu=False):
39 np_softplus = self._npSoftplus(np_features)
41 softplus = nn_ops.softplus(np_features)
xent_op_test.py 48 def _testXent(self, np_features, np_labels, use_gpu=False):
49 np_loss, np_backprop = self._npXent(np_features, np_labels)
52 np_features, np_labels)
57 def _testXentWrapper(self, np_features, np_labels, dim=-1, use_gpu=False):
58 np_loss, _ = self._npXent(np_features, np_labels, dim=dim)
61 labels=np_labels, logits=np_features, dim=dim)
87 np_features = np.array([[[1., 1., 1., 1.]], [[1., 2., 3.,
93 np_features, np_labels)
softmax_op_test.py 49 def _testSoftmax(self, np_features, dim=-1, log=False, use_gpu=False):
54 np_softmax = self._npSoftmax(np_features, dim=dim, log=log)
57 tf_softmax = nn_ops.log_softmax(np_features, dim=dim, name=name)
59 tf_softmax = nn_ops.softmax(np_features, dim=dim, name=name)
sparse_xent_op_test.py 64 def _testXent(self, np_features, np_labels):
65 np_loss, np_backprop = self._npXent(np_features, np_labels)
68 np_features, np_labels)
  /external/tensorflow/tensorflow/python/kernel_tests/distributions/
util_test.py 896 def _npSoftplus(self, np_features):
897 np_features = np.asarray(np_features)
898 zero = np.asarray(0).astype(np_features.dtype)
899 return np.logaddexp(zero, np_features)
901 def _testSoftplus(self, np_features, use_gpu=False):
902 np_features = np.asarray(np_features)
903 np_softplus = self._npSoftplus(np_features)
905 softplus = nn_ops.softplus(np_features
    [all...]
  /external/tensorflow/tensorflow/contrib/layers/python/layers/
layers_test.py     [all...]

Completed in 240 milliseconds