license import { device_util , registerBackend } from '@tensorflow/tfjs-core' ; import { MathBackendWebGL } from './backend_webgl' ; export { version as version_webgl } from './version' ; if ( device_util . isBrowser ( ) ) { registerBackend ( 'webgl' , ( ) => new MathBackendWebGL ( ) , 2 ) ; } export * from './webgl' ; import { forceHalfFloat } from './webgl' ; export const webgl = { forceHalfFloat } ;