Home
last modified time | relevance | path

Searched refs:count_nonzero (Results 1 – 19 of 19) sorted by relevance

/external/tensorflow/tensorflow/contrib/model_pruning/python/
Dpruning_test.py111 self.assertAllEqual(np.count_nonzero(masked_weights_val), 100)
114 self.assertAllEqual(np.count_nonzero(masked_weights_val), 5)
184 self.assertAllEqual(np.count_nonzero(masked_weights_val), 50)
210 non_zero_count.append(np.count_nonzero(masked_weights.eval()))
Dpruning_utils.py222 if np.count_nonzero(maybe_partitioned_axis) != 1:
224 np.count_nonzero(maybe_partitioned_axis))
Dstrip_pruning_vars_lib.py68 100 - float(100 * np.count_nonzero(masked_weight_val)) /
/external/tensorflow/tensorflow/contrib/seq2seq/python/ops/
Dloss.py123 total_count = math_ops.cast(math_ops.count_nonzero(weights),
137 math_ops.count_nonzero(weights, axis=reduce_axis),
/external/tensorflow/tensorflow/python/eager/
Dexecution_callbacks.py83 self._inf_count = np.count_nonzero(np.isinf(value))
84 self._nan_count = np.count_nonzero(np.isnan(value))
/external/tensorflow/tensorflow/contrib/opt/python/training/
Dmultitask_optimizer_wrapper.py36 all_zeros = math_ops.equal(math_ops.count_nonzero(grad), 0)
/external/tensorflow/tensorflow/contrib/boosted_trees/estimator_batch/
Destimator_test.py426 frac_below_upper = round(1. * np.count_nonzero(upper > y) / len(y), 3)
461 count_below_upper = np.count_nonzero(upper > y, axis=0)
462 count_both_below_upper = np.count_nonzero(np.prod(upper > y, axis=1))
/external/tensorflow/tensorflow/python/ops/
Dnn_test.py51 nonzeros = np.count_nonzero(x.flatten())
321 final_count += np.count_nonzero(value)
348 final_count += np.count_nonzero(value)
394 final_count += np.count_nonzero(value)
427 final_count += np.count_nonzero(value)
Dmath_ops.py1461 def count_nonzero(input_tensor=None, function
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_array_ops.py209 masked_lengths = math_ops.count_nonzero(mask, axis=-1)
/external/v8/tools/
Dgc-nvp-trace-processor.py272 def count_nonzero(trace, field): function
/external/tensorflow/tensorflow/contrib/distributions/python/ops/
Dbatch_reshape.py392 math_ops.count_nonzero(implicit_dim, dtype=dtypes.int32),
/external/tensorflow/tensorflow/python/kernel_tests/
Dreduction_ops_test.py1026 tf_ans = math_ops.count_nonzero(x, reduction_axes, keepdims)
1087 y = math_ops.count_nonzero(x, [0])
1093 v = math_ops.count_nonzero(constant_op.constant(["test"]))
Dlosses_test.py1534 weighted_sum / np.count_nonzero(broadcast_weights),
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.math.pbtxt104 name: "count_nonzero"
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.math.pbtxt104 name: "count_nonzero"
Dtensorflow.pbtxt1020 name: "count_nonzero"
/external/tensorflow/tensorflow/python/keras/
Dbackend_test.py1364 self.assertAllClose(np.count_nonzero(outputs_val), 32000, atol=1000)
/external/tensorflow/
DRELEASE.md1453 * `tf.count_nonzero`: `reduction_indices` becomes `axis`