Fix a bug. The Span returned point to an initializer list that is removed. This isn't allowed.
This commit is contained in:
parent
634864312d
commit
a5a5abfe75
@ -179,7 +179,7 @@ Status ConvBackpropComputeDimensionsV2XlaShapes(
|
|||||||
|
|
||||||
} // anonymous namespace
|
} // anonymous namespace
|
||||||
|
|
||||||
absl::Span<const DataType> GetXlaConvTypes() {
|
std::vector<DataType> GetXlaConvTypes() {
|
||||||
return {DT_FLOAT, DT_BFLOAT16, DT_HALF, DT_DOUBLE};
|
return {DT_FLOAT, DT_BFLOAT16, DT_HALF, DT_DOUBLE};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ namespace tensorflow {
|
|||||||
|
|
||||||
// We don't support integers for convolutions, so we list the supported types
|
// We don't support integers for convolutions, so we list the supported types
|
||||||
// here.
|
// here.
|
||||||
absl::Span<const DataType> GetXlaConvTypes();
|
std::vector<DataType> GetXlaConvTypes();
|
||||||
|
|
||||||
// ConvOpAttrs contains all of the metadata necessary to specify a TF or XLA
|
// ConvOpAttrs contains all of the metadata necessary to specify a TF or XLA
|
||||||
// convolution.
|
// convolution.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user