license import { OpExecutor , OpMapper } from '../types' ; const CUSTOM_OPS = { } ; param name param opFunc doc export function registerOp ( name , opFunc ) { const opMapper = { tfOpName : name , category : 'custom' , inputs : [ ] , attrs : [ ] , customExecutor : opFunc } ; CUSTOM_OPS [ name ] = opMapper ; } param name doc export function getRegisteredOp ( name ) { return CUSTOM_OPS [ name ] ; } param name doc export function deregisterOp ( name ) { delete CUSTOM_OPS [ name ] ; }