blob: 041be4b9fe00fd66129c98304d4b35a4fb9577b6 [file] [log] [blame]
// RUN: tf-mlir-translate -mlir-to-graphdef %s -o - 2>&1 | FileCheck %s; test ${PIPESTATUS[1]} -eq 0
// CHECK: Graph export failed: Failed precondition: entry function `main` must be present
func @const() {
^bb0:
%0:2 = "_tf.Const"() {device = "TPU:0", name = "const", dtype = "tfdtype$DT_INT32", value = dense<[1, 2]> : tensor<2xi32>} : () -> (tensor<2xi32>, !_tf.control)
return
}