我在TFRuntime.h中有一个函数classTFRuntime{...templateStatuscomputeXYSlice(Volume*input,intzCoord,Volume*output);...}TFRuntime.cpp包含tensorflow库头文件,例如#include#include我不想将这些包含在header中,因为这会迫使任何使用TFRuntime的人也包含它们。但是,如果我希望computeXYSlice函数允许任何类型,我必须将实现包含在.h文件中。然而,该实现需要上述tensorflowheader。如何解决这个问题?我能否明确地“实例化”com