Add simple static assert to enable removing some copies

Just add a simple assert to at least trigger until update is complete while allowing removing some copies between int64 and int64_t that are required where these differ.

PiperOrigin-RevId: 354372090
Change-Id: I350e78add909c51a25701eb1d6e195587e61dac7
This commit is contained in:
Jacques Pienaar 2021-01-28 12:43:11 -08:00 committed by TensorFlower Gardener
parent e4e87ace6b
commit bd9288e665

View File

@ -68,6 +68,12 @@ limitations under the License.
#include "tensorflow/core/platform/logging.h"
#include "tensorflow/core/util/tensor_format.h"
// These are currently aliases and the alias will be removed, verified
// equivalent until then.
// TODO(b/178519687): Remvoe once addressed.
static_assert(std::is_same<tensorflow::int64, std::int64_t>::value,
"tensorflow::int64 is expected to match std::int64_t");
namespace mlir {
namespace TF {