Back to using strings for the enum translation, forgot about import dep

pull/1239/head
Ross Wightman 4 years ago
parent cbd4ee737f
commit 72ca831dd4

@ -23,12 +23,12 @@ from .device_env import DeviceEnv, DeviceEnvType, TensorList
_PT_TO_XM_OP = {
ReduceOp.SUM: xm.REDUCE_SUM,
ReduceOp.PRODUCT: xm.REDUCE_MUL,
ReduceOp.MIN: xm.REDUCE_MIN,
ReduceOp.MAX: xm.REDUCE_MAX,
ReduceOp.BAND: xm.REDUCE_AND,
ReduceOp.BOR: xm.REDUCE_OR,
ReduceOp.SUM: 'sum',
ReduceOp.PRODUCT: 'mul',
ReduceOp.MIN: 'min',
ReduceOp.MAX: 'max',
ReduceOp.BAND: 'and',
ReduceOp.BOR: 'or',
}

Loading…
Cancel
Save