For internal spidr use only.
import public Compiler.Xla.Literal
interface LiteralRW : Type -> Type -> Type
set : Literal -> List Nat -> ShapeIndex -> ty -> IO ()
get : Literal -> List Nat -> ShapeIndex -> ty
set : LiteralRW dtype ty => Literal -> List Nat -> ShapeIndex -> ty -> IO ()
get : LiteralRW dtype ty => Literal -> List Nat -> ShapeIndex -> ty
write : HasIO io => LiteralRW dtype a => List Nat -> Literal shape a -> io Literal
read : HasIO io => LiteralRW dtype a => List Nat -> Literal -> io (Literal shape a)