Searched refs:count_nonzero (Results 1 – 19 of 19) sorted by relevance
/external/tensorflow/tensorflow/contrib/model_pruning/python/ |
D | pruning_test.py | 111 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()))
|
D | pruning_utils.py | 222 if np.count_nonzero(maybe_partitioned_axis) != 1: 224 np.count_nonzero(maybe_partitioned_axis))
|
D | strip_pruning_vars_lib.py | 68 100 - float(100 * np.count_nonzero(masked_weight_val)) /
|
/external/tensorflow/tensorflow/contrib/seq2seq/python/ops/ |
D | loss.py | 123 total_count = math_ops.cast(math_ops.count_nonzero(weights), 137 math_ops.count_nonzero(weights, axis=reduce_axis),
|
/external/tensorflow/tensorflow/python/eager/ |
D | execution_callbacks.py | 83 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/ |
D | multitask_optimizer_wrapper.py | 36 all_zeros = math_ops.equal(math_ops.count_nonzero(grad), 0)
|
/external/tensorflow/tensorflow/contrib/boosted_trees/estimator_batch/ |
D | estimator_test.py | 426 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/ |
D | nn_test.py | 51 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)
|
D | math_ops.py | 1461 def count_nonzero(input_tensor=None, function
|
/external/tensorflow/tensorflow/python/ops/ragged/ |
D | ragged_array_ops.py | 209 masked_lengths = math_ops.count_nonzero(mask, axis=-1)
|
/external/v8/tools/ |
D | gc-nvp-trace-processor.py | 272 def count_nonzero(trace, field): function
|
/external/tensorflow/tensorflow/contrib/distributions/python/ops/ |
D | batch_reshape.py | 392 math_ops.count_nonzero(implicit_dim, dtype=dtypes.int32),
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | reduction_ops_test.py | 1026 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"]))
|
D | losses_test.py | 1534 weighted_sum / np.count_nonzero(broadcast_weights),
|
/external/tensorflow/tensorflow/tools/api/golden/v2/ |
D | tensorflow.math.pbtxt | 104 name: "count_nonzero"
|
/external/tensorflow/tensorflow/tools/api/golden/v1/ |
D | tensorflow.math.pbtxt | 104 name: "count_nonzero"
|
D | tensorflow.pbtxt | 1020 name: "count_nonzero"
|
/external/tensorflow/tensorflow/python/keras/ |
D | backend_test.py | 1364 self.assertAllClose(np.count_nonzero(outputs_val), 32000, atol=1000)
|
/external/tensorflow/ |
D | RELEASE.md | 1453 * `tf.count_nonzero`: `reduction_indices` becomes `axis`
|