t = \'comcom.android.systemuicom.android.systemuicom.android.systemui\' def pad_trunc_shingle(t): shingle_max = 300 actual_len = tf.strings.length(t).numpy()