Open rxwei opened 6 years ago
Previously, scalar types were represented as 0-d tensor types. After tensor types are removed, I imagine scalar types should be added in their stead?
public indirect enum Type {
case scalar(DataType)
// Replacing:
// case tensor(TensorShape, DataType)
...
}
One goal of GPIR is to get rid of all primitives. Since we do that for instructions, I think it's possible to do the same for types.
In other words, we can define class-based interface for the implementer to define "intrinsic types".
CoreTensor
dependency.