Merge pull request #2 from tatatodd/xla_ir_array_fix
[XLA] Explicitly instantiate Permute template func
This commit is contained in:
commit
49292d15d2
@ -158,7 +158,7 @@ IrArray::Index IrArray::Index::SourceIndexOfTranspose(
|
||||
tensorflow::gtl::ArraySlice<int64> dimension_mapping,
|
||||
llvm::IRBuilder<>* builder) const {
|
||||
std::vector<llvm::Value*> operand_multidim_index =
|
||||
Permute(dimension_mapping, multidim());
|
||||
Permute<std::vector, llvm::Value*>(dimension_mapping, multidim());
|
||||
if (linear() != nullptr &&
|
||||
ShapeUtil::TransposeIsBitcast(operand_shape, shape, dimension_mapping)) {
|
||||
return Index(operand_multidim_index, linear(), operand_shape);
|
||||
|
Loading…
Reference in New Issue
Block a user