license import '@tensorflow/tfjs-backend-cpu' ; import './index' ; import '@tensorflow/tfjs-core/dist/public/chained_ops/register_all_chained_ops' ; import '@tensorflow/tfjs-core/dist/register_all_gradients' ; import './backend_webgl_test_registry' ; import { parseTestEnvFromKarmaFlags , setTestEnvs , setupTestFilters , TEST_ENVS , TestFilter } from '@tensorflow/tfjs-core/dist/jasmine_util' ; const TEST_FILTERS = [ ] ; const customInclude = ( testName ) => { const toExclude = [ 'isBrowser: false' , 'dilation gradient' , 'throws when index is out of bound' , 'method otsu' ] ; for ( const subStr of toExclude ) { if ( testName . includes ( subStr ) ) { return false ; } } return true ; } ; setupTestFilters ( TEST_FILTERS , customInclude ) ; declare let __karma__ ; if ( typeof __karma__ !== 'undefined' ) { const testEnv = parseTestEnvFromKarmaFlags ( __karma__ . config . args , TEST_ENVS ) ; if ( testEnv != null ) { setTestEnvs ( [ testEnv ] ) ; } } require ( '@tensorflow/tfjs-core/dist/tests' ) ; require ( './tests' ) ;