The following script crashed when running on the latest TVM version (commit id:aff4e96).
However, it can run well in an early version (commit id: 124813f).
import tvm
from tvm import relay
mod = tvm.IRModule()
x = relay.var("x", dtype = "uint8", shape = (1,2))
y = relay.var("y", dtype = "uint8", shape = (1,2))
z = relay.left_shift(x.astype('uint8'), relay.reshape(y.astype('uint8'), relay.shape_of(x)))
F = relay.Function([x,y,], z)
mod['main'] = F
mod = relay.transform.InferType()(mod)
print(mod)
graph, lib, params = relay.build(mod, target='llvm')