Alternative Model Loading

Is there a way to load a model from bytes of a file rather than the default load from path:
Module.load(MainActivity.assetFilePath(getApplicationContext(), “deeplabv3_scripted.pt”));

Something like: Module.loadBytes(byteArray);