- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for CalculateBlockSparsity (0.38 sec)
-
tensorflow/compiler/mlir/lite/transforms/dense_to_sparse.cc
for (const auto val : attr.getValues<int8_t>()) { if (val == 0) { num_zeros++; } } } return GetSparsity(num_zeros, num_elements); } float CalculateBlockSparsity(const ElementsAttr& attr, const ShapedType& type, const std::vector<int>& block_size) { float sparsity = 0; std::vector<int> shape(2); shape[0] = type.getDimSize(0);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.1K bytes - Viewed (0)