what-the-bank/sources/com/google/android/gms/internal/firebase_ml/zzoz.java

29 lines
1.1 KiB
Java

package com.google.android.gms.internal.firebase_ml;
import com.google.android.gms.common.internal.GmsLogger;
import java.io.File;
import o.C15516gsl;
import org.tensorflow.lite.TensorFlowLite;
/* loaded from: classes2.dex */
public final class zzoz implements zzol {
private static final GmsLogger zzaoz = new GmsLogger("CustomCompatChecker", "");
@Override // com.google.android.gms.internal.firebase_ml.zzol
public final boolean zza(File file, zzon zzonVar) {
try {
new C15516gsl(file).close();
return true;
} catch (Exception e) {
GmsLogger gmsLogger = zzaoz;
String valueOf = String.valueOf(e);
StringBuilder sb = new StringBuilder(String.valueOf(valueOf).length() + 93);
sb.append("The model is INCOMPATIBLE. It may contain unrecognized custom ops, or not FlatBuffer format: ");
sb.append(valueOf);
gmsLogger.d("CustomCompatChecker", sb.toString());
zzonVar.zza(zzmk.INCOMPATIBLE_TFLITE_VERSION, TensorFlowLite.version(), false);
return false;
}
}
}