[BYOC] Remove kCompiler attr from external functions (#5615)
[BYOC] Remove kCompiler attr from external functions (#5615)

Functions destined for external codegen keep their kCompiler attribute which means SkipFunction returns true when running a pass over such functions during the codegen step. This makes sense during graph partitioning, however when lowering the functions for codegen the is no reason to keep this behaviour.

Allowing this behaviour will mean a codegen can run a pass on functions only intended for one 3rd party library. Specifically, allowing pre-processing of a series of sub-graphs right before it is passes through codegen. This helps ensure that the functions destined for the 3rd party library are in the expected format. For example, we may want to ensure that these functions have a kernel layout of OHWI because the 3rd party library only supports OHWI. This wouldn't be possible before partitioning the graph as we don't know how the graph will be partitioned ahead of time.

Change-Id: Ia68b9da335ef1acfc405a8528aac823de60a65c2
sxjscience/tvm,dmlc/tvm,dmlc/tvm,Laurawly/tvm-1,tqchen/tvm,tqchen/tvm,sxjscience/tvm,Laurawly/tvm-1,dmlc/tvm,sxjscience/tvm,Laurawly/tvm-1,dmlc/tvm,sxjscience/tvm,dmlc/tvm,Laurawly/tvm-1,tqchen/tvm,tqchen/tvm,dmlc/tvm,sxjscience/tvm,dmlc/tvm,Laurawly/tvm-1,sxjscience/tvm,sxjscience/tvm,tqchen/tvm,Laurawly/tvm-1,Laurawly/tvm-1,sxjscience/tvm,dmlc/tvm,Laurawly/tvm-1,dmlc/tvm,Laurawly/tvm-1,Laurawly/tvm-1,tqchen/tvm,tqchen/tvm,tqchen/tvm,tqchen/tvm,tqchen/tvm,sxjscience/tvm