getInputShapeIfDifferent method

List<int>? getInputShapeIfDifferent(
  1. Object? input
)

Implementation

List<int>? getInputShapeIfDifferent(Object? input) {
  if (input == null) {
    return null;
  }
  if (input is ByteBuffer || input is Uint8List) {
    return null;
  }
  final List<int> inputShape = _computeShapeOf(input);
  if (inputShape == shape) {
    return null;
  }
  return inputShape;
}