- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ReshapeNCHWBiasToNHWC (0.63 sec)
-
tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td
"$0.getType().cast<ShapedType>().getShape()[2] == 1 && " "$0.getType().cast<ShapedType>().getShape()[3] == 1">, "has shape consistent with a bias">; def ReshapeNCHWBiasToNHWC : NativeCodeCall<"ReshapeNCHWBiasToNHWC($0, $1)">; //===----------------------------------------------------------------------===// // Ternary ops patterns. //===----------------------------------------------------------------------===//
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 20:31:41 UTC 2024 - 66.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize.cc
return elements.reshape(new_type); } // This assumes that the bias is of shape NxCx1x1 and doesn't require transpose // Its corresponding constraint is optimize_patterns.td:IsBiasShape() ElementsAttr ReshapeNCHWBiasToNHWC(Value v, Attribute a) { auto elements = mlir::cast<DenseElementsAttr>(a); auto shape = mlir::cast<ShapedType>(v.getType()).getShape(); if (shape.size() != 4 || shape[2] != 1 || shape[3] != 1) return elements;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 102.3K bytes - Viewed (0)