Home
last modified time | relevance | path

Searched refs:squeeze_dims (Results 1 – 25 of 35) sorted by relevance

12

/external/tensorflow/tensorflow/lite/kernels/
Dsqueeze.cc48 const int* squeeze_dims = op_context.params->squeeze_dims; in Prepare() local
61 int current = squeeze_dims[idx] < 0 ? squeeze_dims[idx] + input_num_dims in Prepare()
62 : squeeze_dims[idx]; in Prepare()
/external/tensorflow/tensorflow/contrib/distributions/python/ops/
Dshape.py445 squeeze_dims = []
447 squeeze_dims += [-1]
449 squeeze_dims += [1]
450 if squeeze_dims:
451 x = array_ops.squeeze(x, axis=squeeze_dims)
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dshape_op.cc163 std::vector<int32> squeeze_dims; in SqueezeOp() local
164 OP_REQUIRES_OK(ctx, ctx->GetAttr("squeeze_dims", &squeeze_dims)); in SqueezeOp()
165 squeeze_dims_.insert(squeeze_dims.begin(), squeeze_dims.end()); in SqueezeOp()
/external/tensorflow/tensorflow/core/kernels/
Dshape_ops.h191 std::vector<int32> squeeze_dims; in SqueezeOp() local
192 OP_REQUIRES_OK(ctx, ctx->GetAttr("squeeze_dims", &squeeze_dims)); in SqueezeOp()
193 squeeze_dims_.insert(squeeze_dims.begin(), squeeze_dims.end()); in SqueezeOp()
/external/tensorflow/tensorflow/python/keras/utils/
Dlosses_utils.py101squeeze_dims = lambda: confusion_matrix.remove_squeezable_dimensions( # pylint: disable=g-long-la… function
105 is_last_dim_1, squeeze_dims, lambda: (y_true, y_pred))
107 math_ops.equal(1, rank_diff), maybe_squeeze_dims, squeeze_dims)
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_Squeeze.pbtxt17 name: "squeeze_dims"
30 `squeeze_dims`.
/external/tensorflow/tensorflow/lite/core/api/
Dflatbuffer_conversions.cc529 const auto& squeeze_dims = schema_params->squeeze_dims(); in ParseOpData() local
531 sizeof(params->squeeze_dims), squeeze_dims, params->squeeze_dims, in ParseOpData()
533 params->num_squeeze_dims = squeeze_dims->Length(); in ParseOpData()
/external/tensorflow/tensorflow/python/kernel_tests/
Dshape_ops_test.py276 def _compareSqueeze(self, x, squeeze_dims, use_gpu): argument
278 if squeeze_dims:
279 np_ans = np.squeeze(x, axis=tuple(squeeze_dims))
280 tensor = array_ops.squeeze(x, squeeze_dims)
289 def _compareSqueezeAll(self, x, squeeze_dims=None): argument
290 if squeeze_dims is None:
291 squeeze_dims = []
292 self._compareSqueeze(x, squeeze_dims, False)
293 self._compareSqueeze(x, squeeze_dims, True)
/external/tensorflow/tensorflow/contrib/labeled_tensor/python/ops/
Dops.py850 squeeze_dims = []
854 squeeze_dims.append(0)
862 squeeze_dims.append(1)
871 if squeeze_dims:
872 result_op = array_ops.squeeze(result_op, squeeze_dims)
/external/tensorflow/tensorflow/core/ops/
Darray_ops.cc1985 std::vector<int32> squeeze_dims; in __anondb9326b23002() local
1986 TF_RETURN_IF_ERROR(c->GetAttr("squeeze_dims", &squeeze_dims)); in __anondb9326b23002()
1987 for (int i = 0; i < squeeze_dims.size(); ++i) { in __anondb9326b23002()
1988 if (squeeze_dims[i] < -input_rank || squeeze_dims[i] >= input_rank) { in __anondb9326b23002()
1993 if (squeeze_dims[i] < 0) { in __anondb9326b23002()
1994 squeeze_dims[i] += input_rank; in __anondb9326b23002()
2003 std::find(squeeze_dims.begin(), squeeze_dims.end(), i) != in __anondb9326b23002()
2004 squeeze_dims.end(); in __anondb9326b23002()
2014 if (squeeze_dims.empty()) { in __anondb9326b23002()
2019 if (is_explicit_match || squeeze_dims.empty()) { in __anondb9326b23002()
Darray_ops_test.cc1065 auto rebuild_node_def = [&op](const std::vector<int32>& squeeze_dims) { in TEST() argument
1068 .Attr("squeeze_dims", squeeze_dims) in TEST()
/external/tensorflow/tensorflow/lite/c/
Dbuiltin_op_data.h302 int squeeze_dims[8]; member
/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Dpropagate_fixed_sizes.cc1720 std::vector<int> squeeze_dims; in ProcessSqueezeOperator() local
1722 for (int i : op->squeeze_dims) { in ProcessSqueezeOperator()
1723 squeeze_dims.push_back(i < 0 ? i + input_num_dims : i); in ProcessSqueezeOperator()
1727 (!squeeze_dims.empty() && in ProcessSqueezeOperator()
1728 std::find(squeeze_dims.begin(), squeeze_dims.end(), i) == in ProcessSqueezeOperator()
1729 squeeze_dims.end())) { in ProcessSqueezeOperator()
/external/tensorflow/tensorflow/lite/toco/tflite/
Doperator_test.cc447 op.squeeze_dims = {-2, -3, 4, 1, 4}; in TEST_F()
451 EXPECT_EQ(op.squeeze_dims, output_toco_op->squeeze_dims); in TEST_F()
Doperator.cc1407 auto squeeze_dims = builder->CreateVector(op.squeeze_dims); in WriteOptions() local
1408 return ::tflite::CreateSqueezeOptions(*builder, squeeze_dims); in WriteOptions()
1413 op->squeeze_dims.insert(op->squeeze_dims.end(), in ReadOptions()
1414 options.squeeze_dims()->begin(), in ReadOptions()
1415 options.squeeze_dims()->end()); in ReadOptions()
/external/tensorflow/tensorflow/lite/toco/
Dimport_tensorflow.cc913 const auto& squeeze_dims = GetListAttr(node, "squeeze_dims"); in ConvertSqueezeOperator() local
914 for (int i = 0; i < squeeze_dims.i_size(); ++i) { in ConvertSqueezeOperator()
915 op->squeeze_dims.push_back(squeeze_dims.i(i)); in ConvertSqueezeOperator()
Dexport_tensorflow.cc1826 if (!src_op.squeeze_dims.empty()) { in ConvertSqueezeOperator()
1827 auto& squeeze_dims = (*new_op->mutable_attr())["squeeze_dims"]; in ConvertSqueezeOperator() local
1828 for (int i : src_op.squeeze_dims) { in ConvertSqueezeOperator()
1829 squeeze_dims.mutable_list()->add_i(i); in ConvertSqueezeOperator()
Dmodel.h1147 std::vector<int> squeeze_dims;
/external/tensorflow/tensorflow/contrib/lite/
Dnnapi_delegate.cc429 add_vector_int32(builtin->squeeze_dims, in AddOpsAndParams()
/external/tensorflow/tensorflow/python/ops/
Darray_ops.py3129 def squeeze(input, axis=None, name=None, squeeze_dims=None): argument
3170 "axis", axis, "squeeze_dims", squeeze_dims)
/external/tensorflow/tensorflow/lite/kernels/internal/
Dtypes.h982 int32 squeeze_dims[4]; member
/external/tensorflow/tensorflow/contrib/lite/kernels/internal/
Dtypes.h937 int32 squeeze_dims[4]; member
/external/tensorflow/tensorflow/lite/
Dnnapi_delegate.cc399 add_vector_int32(builtin->squeeze_dims, in AddOpsAndParams()
/external/tensorflow/tensorflow/lite/schema/
Dschema_generated.h5198 std::vector<int32_t> squeeze_dims;
5208 const flatbuffers::Vector<int32_t> *squeeze_dims() const {
5214 verifier.VerifyVector(squeeze_dims()) &&
5225 void add_squeeze_dims(flatbuffers::Offset<flatbuffers::Vector<int32_t>> squeeze_dims) {
5226 fbb_.AddOffset(SqueezeOptions::VT_SQUEEZE_DIMS, squeeze_dims);
5242 flatbuffers::Offset<flatbuffers::Vector<int32_t>> squeeze_dims = 0) {
5244 builder_.add_squeeze_dims(squeeze_dims);
5250 const std::vector<int32_t> *squeeze_dims = nullptr) {
5253 squeeze_dims ? _fbb.CreateVector<int32_t>(*squeeze_dims) : 0);
9948 … _e = squeeze_dims(); if (_e) { _o->squeeze_dims.resize(_e->size()); for (flatbuffers::uoffset_t _…
[all …]
Dschema.fbs571 squeeze_dims:[int];

12