Hi @srkreddy1238
Since the image process packages for golang or other languages are not so convenient or efficient as python, sometimes it’s tricky to combine the image preprocess ops with model graph as a whole and load it for inference under some industry environment, then we can feed in the base64 or file iostream as an input.
But it seems tvm doesn’t support these op be converted, say ‘DecodeBase64’ of tensorflow, and apparently it’s not convenient to apply the go tvm infra for online server.
BTW, i compromised to tfgo ops for preprocess before gotvm feed in, more specifically, i built a small tf graph to read a image file, cast, resize it and output a 4d tensor, then i feeded in the tensor to tvm. And it turned out gotvm needed a 1dslice as input to copyfrom, so i had to reshape the 4dtensor into an 1darray, would gotvm support more kinds of golang tensor as input?
thanks