Skip to content

Instantly share code, notes, and snippets.

@saad-palapa
saad-palapa / gist:a3827a9ed6271db217a4b59c2498e602
Created September 26, 2022 18:51
TfLite model analyzer on efficientdet
View gist:a3827a9ed6271db217a4b59c2498e602
=== /content/efficientdet.tflite ===
Your TFLite model has '1' subgraph(s). In the subgraph description below,
T# represents the Tensor numbers. For example, in Subgraph#0, the QUANTIZE op takes
tensor #0 as input and produces tensor #576 as output.
Subgraph#0 main(T#0) -> [T#1060, T#1058, T#1061, T#1059]
Op#0 QUANTIZE(T#0) -> [T#576]
Op#1 CONV_2D(T#576, T#8, T#9) -> [T#577]
Op#2 DEPTHWISE_CONV_2D(T#577, T#10, T#11) -> [T#578]
@saad-palapa
saad-palapa / state-management.dart
Last active March 29, 2023 20:23
Custom flutter state management by wrapping 3rd party state management libraries
View state-management.dart
import 'package:flutter/widgets.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
// this is an interface to a state management library
// clients of this library should not depend on any specific state management library
class Published<T> {
final _CubitWrapper<T> _cubit;
Published(T val) : _cubit = _CubitWrapper(val);