device/gpu/api_internal/nn_device_api.cpp
/*
Closes interface: clears structure with function pointers that client/scheduler can use and releases any outstanding client memory

If succeeds returns non-negative value.
If fails returns negative error-code.[TODO]
*/
Closes interface: clears structure with function pointers that client/scheduler can use and releases any outstanding client memory
If succeeds returns non-negative value.
If fails returns negative error-code.[TODO]
Closes interface : clears structure with function pointers that client / scheduler can use and releases any outstanding client memory If succeeds returns non - negative value . If fails returns negative error - code . [ TODO ]
int32_t nn_device_interface_close(
    void *const device_interface           
) {
    if(!device_interface) return -1;
    switch(*reinterpret_cast<unsigned char *const>(device_interface)) {
    case 0: {
            break;
        }
    default:
        return -2;
    }
    return 0;
}
int32_t nn_device_interface_close ( void * const device_interface ) { if ( ! device_interface ) return -1 ; switch ( * reinterpret_cast < unsigned char * const > ( device_interface ) ) { case 0 : { break ; } default : return -2 ; } return 0 ; }
Closes interface: clears structure with function pointers that client/scheduler can use and releases any outstanding client memory
If succeeds returns non-negative value.
Closes interface : clears structure with function pointers that client / scheduler can use and releases any outstanding client memory If succeeds returns non - negative value .
/* pointer to interface structure */