Home
last modified time | relevance | path

Searched refs:dim_metadata_size (Results 1 – 9 of 9) sorted by relevance

/external/tensorflow/tensorflow/lite/
Dinterpreter_builder.cc454 const size_t dim_metadata_size = src_sparsity->dim_metadata()->size(); in ParseSparsity() local
455 sparsity->dim_metadata_size = dim_metadata_size; in ParseSparsity()
457 malloc(dim_metadata_size * sizeof(TfLiteDimensionMetadata))); in ParseSparsity()
459 dim_metadata_size * sizeof(TfLiteDimensionMetadata)); in ParseSparsity()
461 for (int i = 0; i < dim_metadata_size; i++) { in ParseSparsity()
Dmodel_test.cc439 ASSERT_EQ(t1->sparsity->dim_metadata_size, 4); in TEST()
/external/tensorflow/tensorflow/lite/tools/optimize/sparsity/
Dformat_converter.cc227 format_.resize(sparsity.dim_metadata_size); in FormatConverter()
228 dim_metadata_.resize(2 * sparsity.dim_metadata_size); in FormatConverter()
229 for (int i = 0; i < sparsity.dim_metadata_size; i++) { in FormatConverter()
/external/tensorflow/tensorflow/lite/c/
Dcommon_test.cc129 t.sparsity->dim_metadata_size = 2; in TEST()
Dcommon.c126 for (; i < sparsity->dim_metadata_size; i++) { in TfLiteSparsityFree()
Dcommon.h366 int dim_metadata_size; member
/external/tensorflow/tensorflow/lite/python/interpreter_wrapper/
Dinterpreter_wrapper.cc116 PyObject* dim_metadata = PyList_New(param.dim_metadata_size); in PyDictFromSparsityParam()
117 for (int i = 0; i < param.dim_metadata_size; i++) { in PyDictFromSparsityParam()
/external/tensorflow/tensorflow/lite/kernels/
Dfully_connected.cc869 if (sparsity.dim_metadata_size == kDimMetadataSizeRandomSparse) { in EvalFloat()
877 } else if (sparsity.dim_metadata_size == kDimMetadataSizeBlockSparse && in EvalFloat()
Dtest_util.h583 ->dim_metadata[tensor->sparsity->dim_metadata_size - 1] in ExtractVector()