Fail the code 5 times and unlock with your google account (must be online to verify your password)
Wipe the tablet through recovery/fastboot (using hardware keys in specific order) to wipe your device. It is different for each tablet, so you may have to call the OEM and ask them how to do a factory reset with the buttons.