- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for GetNumTrailingOnes (0.23 sec)
-
tensorflow/compiler/mlir/lite/transforms/optimize.cc
} return num_leading_broadcast_dims; } // Return the number of trailing 1s in the shape of the given input. // Ex. input_shape = [1 x 1 x 2 x 1] => 1 // returns 0 if the input shape is not static. int GetNumTrailingOnes(ShapedType input_type) { if (!input_type.hasStaticShape()) return 0; auto input_shape = input_type.getShape(); int num_trailing_broadcast_dims = 0; for (int i = input_shape.size() - 1; i >= 0; --i) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 102.3K bytes - Viewed (0)