Home
last modified time | relevance | path

Searched refs:keep_dims (Results 1 – 25 of 86) sorted by relevance

1234

/external/tensorflow/tensorflow/python/ops/
Dnn_batchnorm_test.py340 def _npSuffStats(self, x, axes, shift, keep_dims): argument
343 m_ss = np.sum(x - shift, axis=axis, keepdims=keep_dims)
344 v_ss = np.sum((x - shift) * (x - shift), axis=axis, keepdims=keep_dims)
346 m_ss = np.sum(x, axis=axis, keepdims=keep_dims)
347 v_ss = np.sum(x * x, axis=axis, keepdims=keep_dims)
352 if not keep_dims:
356 def _opSuffStats(self, x, axes, shift, keep_dims): argument
357 return nn_impl.sufficient_statistics(x, axes, shift, keep_dims)
359 def _testSuffStats(self, x_shape, axes, shift, keep_dims, has_shape): argument
361 np_c, np_m, np_v, np_s = self._npSuffStats(x_val, axes, shift, keep_dims)
[all …]
Dstring_ops.py127 keep_dims=False, argument
136 keep_dims=keep_dims,
Dmath_ops.py1326 keep_dims=None): argument
1366 "keep_dims", keep_dims)
1388 keep_dims=None): argument
1429 "keep_dims", keep_dims)
1454 keep_dims=None): argument
1505 "keep_dims", keep_dims)
1526 keep_dims=None): argument
1555 "keep_dims", keep_dims)
1576 keep_dims=None): argument
1605 "keep_dims", keep_dims)
[all …]
Dsparse_ops.py795 def sparse_reduce_max(sp_input, axis=None, keep_dims=False, argument
837 math_ops._ReductionDims(sp_input, axis, reduction_axes), keep_dims)
843 keep_dims=False, argument
873 math_ops._ReductionDims(sp_input, axis, reduction_axes), keep_dims))
879 def sparse_reduce_sum(sp_input, axis=None, keep_dims=False, argument
921 math_ops._ReductionDims(sp_input, axis, reduction_axes), keep_dims)
927 keep_dims=False, argument
957 math_ops._ReductionDims(sp_input, axis, reduction_axes), keep_dims))
Dnn_impl.py570 def sufficient_statistics(x, axes, shift=None, keep_dims=False, name=None): argument
614 m_ss = math_ops.reduce_sum(m_ss, axes, keepdims=keep_dims, name="mean_ss")
615 v_ss = math_ops.reduce_sum(v_ss, axes, keepdims=keep_dims, name="var_ss")
657 keep_dims=False): argument
697 if not keep_dims:
708 def weighted_moments(x, axes, frequency_weights, name=None, keep_dims=False): argument
767 if not keep_dims:
Dbatch_norm_benchmark.py84 keep_dims = mode == "py" or mode == "slow"
85 if keep_dims:
99 mean, variance = nn_impl.moments(tensor, axes, keep_dims=keep_dims)
/external/tensorflow/tensorflow/python/kernel_tests/
Dreduce_join_op_test.py104 keep_dims=False, argument
120 keep_dims=keep_dims,
146 keep_dims=False,
151 keep_dims=True,
159 keep_dims=True,
297 keep_dims=True)
303 keep_dims=True)
309 keep_dims=True, reduction_indices=None)
316 keep_dims=True, reduction_indices=[])
Dnorm_op_test.py72 tf_matrix, ord=ord_, axis=axis_, keep_dims=keep_dims_)
77 tf_matrix, ord=ord_, axis=axis_, keep_dims=keep_dims_)
111 for keep_dims in False, True:
114 keep_dims, use_static_shape)
116 _GetNormOpTest(dtype, shape, ord, axis, keep_dims,
/external/tensorflow/tensorflow/contrib/bayesflow/python/ops/
Dmonte_carlo_impl.py198 axis=0, keep_dims=False, name=None): argument
331 return math_ops.reduce_mean(f(samples), axis=axis, keep_dims=keep_dims)
351 return math_ops.reduce_mean(fx, axis=axis, keep_dims=keep_dims)
/external/tensorflow/tensorflow/contrib/lite/kernels/
Dmean_test.cc53 std::initializer_list<int> axis, bool keep_dims) { in MeanOpConstModel() argument
58 CreateMeanOptions(builder_, keep_dims).Union()); in MeanOpConstModel()
67 const TensorData& axis, bool keep_dims) { in MeanOpDynamicModel() argument
72 CreateMeanOptions(builder_, keep_dims).Union()); in MeanOpDynamicModel()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_ReduceJoin.pbtxt21 set to `1` depending on `keep_dims`.
25 name: "keep_dims"
51 tf.reduce_join(a, 0, keep_dims=True) ==> [["ac", "bd"]]
52 tf.reduce_join(a, 1, keep_dims=True) ==> [["ab"], ["cd"]]
Dapi_def_Any.pbtxt30 name: "keep_dims"
38 `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in
39 `reduction_indices`. If `keep_dims` is true, the reduced dimensions are
Dapi_def_Min.pbtxt30 name: "keep_dims"
38 `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in
39 `reduction_indices`. If `keep_dims` is true, the reduced dimensions are
Dapi_def_All.pbtxt30 name: "keep_dims"
38 `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in
39 `reduction_indices`. If `keep_dims` is true, the reduced dimensions are
Dapi_def_Max.pbtxt30 name: "keep_dims"
38 `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in
39 `reduction_indices`. If `keep_dims` is true, the reduced dimensions are
Dapi_def_Prod.pbtxt30 name: "keep_dims"
38 `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in
39 `reduction_indices`. If `keep_dims` is true, the reduced dimensions are
Dapi_def_Sum.pbtxt30 name: "keep_dims"
38 `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in
39 `reduction_indices`. If `keep_dims` is true, the reduced dimensions are
Dapi_def_Mean.pbtxt30 name: "keep_dims"
38 `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in
39 `reduction_indices`. If `keep_dims` is true, the reduced dimensions are
Dapi_def_SparseReduceMaxSparse.pbtxt29 name: "keep_dims"
41 `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in
42 `reduction_axes`. If `keep_dims` is true, the reduced dimensions are retained
Dapi_def_SparseReduceSumSparse.pbtxt29 name: "keep_dims"
41 `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in
42 `reduction_axes`. If `keep_dims` is true, the reduced dimensions are retained
Dapi_def_SparseReduceMax.pbtxt35 name: "keep_dims"
47 `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in
48 `reduction_axes`. If `keep_dims` is true, the reduced dimensions are retained
Dapi_def_SparseReduceSum.pbtxt35 name: "keep_dims"
47 `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in
48 `reduction_axes`. If `keep_dims` is true, the reduced dimensions are retained
/external/tensorflow/tensorflow/contrib/factorization/python/ops/
Dgmm_ops.py57 x -= math_ops.reduce_mean(x, 0, keep_dims=True)
60 math_ops.square(x), 0, keep_dims=True) / (num_points - 1)
316 math_ops.log(self._covs + 1e-3), 1, keep_dims=True)
354 self._probs[shard_id], axis=1, keep_dims=True)
378 self._w[shard_id], 0, keep_dims=True)
457 math_ops.reduce_logsumexp(op, axis=2, keep_dims=True), axis=0)
/external/tensorflow/tensorflow/contrib/gan/python/features/python/
Dvirtual_batchnorm_impl.py67 shift = array_ops.stop_gradient(math_ops.reduce_mean(y, axes, keep_dims=True))
69 shifted_mean = math_ops.reduce_mean(y - shift, axes, keep_dims=True)
71 mean_squared = math_ops.reduce_mean(math_ops.square(y), axes, keep_dims=True)
/external/tensorflow/tensorflow/core/kernels/
Dreduction_ops_common.cc78 const bool keep_dims) { in Simplify() argument
92 } else if (keep_dims) { in Simplify()

1234