rxwei / GPIR

Apache License 2.0
0 stars 2 forks source link

Nuke things! #1

Open rxwei opened 6 years ago

rxwei commented 6 years ago
  1. Nuke linear algebra instruction set.
  2. Nuke tensor type.
  3. Nuke CoreTensor dependency.
dan-zheng commented 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)
    ...
}
rxwei commented 6 years ago

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.

rxwei commented 6 years ago

In other words, we can define class-based interface for the implementer to define "intrinsic types".