text: Title: ValueError: Cannot convert a partially known TensorShape to a Tensor: (1, 0, ?)
  Body: F:\tensorflow3\lib\site-packages\tensorflow\python\framework\dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
    _np_qint8 = np.dtype([("qint8", np.int8, 1)])
  F:\tensorflow3\lib\site-packages\tensorflow\python\framework\dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
    _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
  F:\tensorflow3\lib\site-packages\tensorflow\python\framework\dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
    _np_qint16 = np.dtype([("qint16", np.int16, 1)])
  F:\tensorflow3\lib\site-packages\tensorflow\python\framework\dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
    _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
  F:\tensorflow3\lib\site-packages\tensorflow\python\framework\dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
    _np_qint32 = np.dtype([("qint32", np.int32, 1)])
  F:\tensorflow3\lib\site-packages\tensorflow\python\framework\dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
    np_resource = np.dtype([("resource", np.ubyte, 1)])
  F:\tensorflow3\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
    _np_qint8 = np.dtype([("qint8", np.int8, 1)])
  F:\tensorflow3\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
    _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
  F:\tensorflow3\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
    _np_qint16 = np.dtype([("qint16", np.int16, 1)])
  F:\tensorflow3\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
    _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
  F:\tensorflow3\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
    _np_qint32 = np.dtype([("qint32", np.int32, 1)])
  F:\tensorflow3\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
    np_resource = np.dtype([("resource", np.ubyte, 1)])
  WARNING: Logging before flag parsing goes to stderr.
  W0808 21:46:41.206200  7844 deprecation_wrapper.py:119] From C:\Users\hansaizhou\workspace\XLnet\model_utils.py:295: The name tf.train.Optimizer is deprecated. Please use tf.compat.v1.train.Optimizer instead.
  
  W0808 21:46:41.221700  7844 deprecation_wrapper.py:119] From C:\Users\hansaizhou\workspace\XLnet\run_classifier.py:858: The name tf.app.run is deprecated. Please use tf.compat.v1.app.run instead.
  
  W0808 21:46:41.225200  7844 deprecation_wrapper.py:119] From C:\Users\hansaizhou\workspace\XLnet\run_classifier.py:639: The name tf.logging.set_verbosity is deprecated. Please use tf.compat.v1.logging.set_verbosity instead.
  
  W0808 21:46:41.225200  7844 deprecation_wrapper.py:119] From C:\Users\hansaizhou\workspace\XLnet\run_classifier.py:639: The name tf.logging.INFO is deprecated. Please use tf.compat.v1.logging.INFO instead.
  
  W0808 21:46:41.225700  7844 deprecation_wrapper.py:119] From C:\Users\hansaizhou\workspace\XLnet\run_classifier.py:647: The name tf.gfile.Exists is deprecated. Please use tf.io.gfile.exists instead.
  
  W0808 21:46:41.255199  7844 deprecation_wrapper.py:119] From C:\Users\hansaizhou\workspace\XLnet\model_utils.py:27: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead.
  
  W0808 21:46:41.957199  7844 lazy_loader.py:50] 
  The TensorFlow contrib module will not be included in TensorFlow 2.0.
  For more information, please see:
    * https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md
    * https://github.com/tensorflow/addons
    * https://github.com/tensorflow/io (for I/O related ops)
  If you depend on functionality not listed there, please file an issue.
  
  2019-08-08 21:46:41.962200: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
  I0808 21:46:41.963700  7844 cross_device_ops.py:1174] Device is available but not used by distribute strategy: /device:CPU:0
  W0808 21:46:41.964200  7844 cross_device_ops.py:1177] Not all devices in `tf.distribute.Strategy` are visible to TensorFlow.
  W0808 21:46:41.964200  7844 deprecation_wrapper.py:119] From C:\Users\hansaizhou\workspace\XLnet\model_utils.py:40: The name tf.logging.info is deprecated. Please use tf.compat.v1.logging.info instead.
  
  I0808 21:46:41.964699  7844 model_utils.py:41] Use MirroredStrategy with 8 devices.
  I0808 21:46:41.965199  7844 run_config.py:558] Initializing RunConfig with distribution strategies.
  I0808 21:46:41.965199  7844 estimator_training.py:167] Not using Distribute Coordinator.
  I0808 21:46:41.965199  7844 estimator.py:209] Using config: {'_model_dir': 'F:/kaggleData/GS_ROOT/exp/imdb/', '_tf_random_seed': None, '_save_summary_steps': 100, '_save_checkpoints_steps': 500, '_save_checkpoints_secs': None, '_session_config': allow_soft_placement: true
  , '_keep_checkpoint_max': 0, '_keep_checkpoint_every_n_hours': 10000, '_log_step_count_steps': 100, '_train_distribute': <tensorflow.contrib.distribute.python.mirrored_strategy.MirroredStrategy object at 0x0000000012010320>, '_device_fn': None, '_protocol': None, '_eval_distribute': None, '_experimental_distribute': None, '_experimental_max_worker_delay_secs': None, '_service': None, '_cluster_spec': <tensorflow.python.training.server_lib.ClusterSpec object at 0x000000000D96DB00>, '_task_type': 'worker', '_task_id': 0, '_global_id_in_cluster': 0, '_master': '', '_evaluation_master': '', '_is_chief': True, '_num_ps_replicas': 0, '_num_worker_replicas': 1, '_distribute_coordinator_mode': None, '_tpu_config': TPUConfig(iterations_per_loop=500, num_shards=8, num_cores_per_replica=None, per_host_input_for_training=3, tpu_job_name=None, initial_infeed_sleep_secs=None, input_partition_dims=None, eval_training_input_configuration=2), '_cluster': None}
  W0808 21:46:41.965700  7844 model_fn.py:630] Estimator's model_fn (<function get_model_fn.<locals>.model_fn at 0x0000000011EBC950>) includes params argument, but params are not passed to Estimator.
  W0808 21:46:41.966200  7844 deprecation_wrapper.py:119] From C:\Users\hansaizhou\workspace\XLnet\run_classifier.py:314: The name tf.gfile.ListDirectory is deprecated. Please use tf.io.gfile.listdir instead.
  
  W0808 21:46:41.966200  7844 deprecation_wrapper.py:119] From C:\Users\hansaizhou\workspace\XLnet\run_classifier.py:318: The name tf.gfile.Open is deprecated. Please use tf.io.gfile.GFile instead.
  
  I0808 21:46:41.967200  7844 run_classifier.py:730] Num of eval samples: 4
  I0808 21:46:41.967700  7844 run_classifier.py:404] Do not overwrite tfrecord F:/kaggleData/GS_ROOT/proc_data/imdb/model.model.len-512.dev.predict.tf_record exists.
  W0808 21:46:41.967700  7844 deprecation_wrapper.py:119] From C:\Users\hansaizhou\workspace\XLnet\run_classifier.py:452: The name tf.FixedLenFeature is deprecated. Please use tf.io.FixedLenFeature instead.
  
  I0808 21:46:41.967700  7844 run_classifier.py:461] Input tfrecord file F:/kaggleData/GS_ROOT/proc_data/imdb/model.model.len-512.dev.predict.tf_record
  F:/kaggleData/prediction\imdb.tsv
  <class 'function'>
  W0808 21:46:41.994199  7844 deprecation.py:323] From C:\Users\hansaizhou\workspace\XLnet\run_classifier.py:506: map_and_batch (from tensorflow.contrib.data.python.ops.batching) is deprecated and will be removed in a future version.
  Instructions for updating:
  Use `tf.data.experimental.map_and_batch(...)`.
  W0808 21:46:41.994199  7844 deprecation.py:323] From F:\tensorflow3\lib\site-packages\tensorflow\contrib\data\python\ops\batching.py:273: map_and_batch (from tensorflow.python.data.experimental.ops.batching) is deprecated and will be removed in a future version.
  Instructions for updating:
  Use `tf.data.Dataset.map(map_func, num_parallel_calls)` followed by `tf.data.Dataset.batch(batch_size, drop_remainder)`. Static tf.data optimizations will take care of using the fused implementation.
  W0808 21:46:41.995699  7844 deprecation_wrapper.py:119] From C:\Users\hansaizhou\workspace\XLnet\run_classifier.py:465: The name tf.parse_single_example is deprecated. Please use tf.io.parse_single_example instead.
  
  I0808 21:46:42.019700  7844 estimator.py:1145] Calling model_fn.
  W0808 21:46:42.029199  7844 deprecation_wrapper.py:119] From C:\Users\hansaizhou\workspace\XLnet\xlnet.py:220: The name tf.variable_scope is deprecated. Please use tf.compat.v1.variable_scope instead.
  
  W0808 21:46:42.029700  7844 deprecation_wrapper.py:119] From C:\Users\hansaizhou\workspace\XLnet\xlnet.py:220: The name tf.AUTO_REUSE is deprecated. Please use tf.compat.v1.AUTO_REUSE instead.
  
  I0808 21:46:42.029700  7844 modeling.py:453] memory input None
  I0808 21:46:42.030200  7844 modeling.py:455] Use float type <dtype: 'float32'>
  Traceback (most recent call last):
    File "F:\tensorflow3\lib\site-packages\tensorflow\python\ops\array_ops.py", line 1877, in zeros
      tensor_shape.TensorShape(shape))
    File "F:\tensorflow3\lib\site-packages\tensorflow\python\framework\constant_op.py", line 326, in _tensor_shape_tensor_conversion_function
      "Cannot convert a partially known TensorShape to a Tensor: %s" % s)
  ValueError: Cannot convert a partially known TensorShape to a Tensor: (1, 0, ?)
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "C:\Users\hansaizhou\workspace\XLnet\run_classifier.py", line 858, in <module>
      tf.app.run()
    File "F:\tensorflow3\lib\site-packages\tensorflow\python\platform\app.py", line 40, in run
      _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
    File "F:\tensorflow3\lib\site-packages\absl\app.py", line 300, in run
      _run_main(main, args)
    File "F:\tensorflow3\lib\site-packages\absl\app.py", line 251, in _run_main
      sys.exit(main(argv))
    File "C:\Users\hansaizhou\workspace\XLnet\run_classifier.py", line 827, in main
      checkpoint_path=FLAGS.predict_ckpt)):
    File "F:\tensorflow3\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 619, in predict
      features, None, ModeKeys.PREDICT, self.config)
    File "F:\tensorflow3\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 1146, in _call_model_fn
      model_fn_results = self._model_fn(features=features, **kwargs)
    File "C:\Users\hansaizhou\workspace\XLnet\run_classifier.py", line 525, in model_fn
      FLAGS, features, n_class, is_training)
    File "C:\Users\hansaizhou\workspace\XLnet\function_builder.py", line 152, in get_classification_loss
      input_mask=inp_mask)
    File "C:\Users\hansaizhou\workspace\XLnet\xlnet.py", line 222, in __init__
      ) = modeling.transformer_xl(**tfm_args)
    File "C:\Users\hansaizhou\workspace\XLnet\modeling.py", line 499, in transformer_xl
      dtype=tf_float)
    File "F:\tensorflow3\lib\site-packages\tensorflow\python\ops\array_ops.py", line 1880, in zeros
      shape = ops.convert_to_tensor(shape, dtype=dtypes.int32)
    File "F:\tensorflow3\lib\site-packages\tensorflow\python\framework\ops.py", line 1087, in convert_to_tensor
      return convert_to_tensor_v2(value, dtype, preferred_dtype, name)
    File "F:\tensorflow3\lib\site-packages\tensorflow\python\framework\ops.py", line 1145, in convert_to_tensor_v2
      as_ref=False)
    File "F:\tensorflow3\lib\site-packages\tensorflow\python\framework\ops.py", line 1224, in internal_convert_to_tensor
      ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
    File "F:\tensorflow3\lib\site-packages\tensorflow\python\framework\constant_op.py", line 305, in _constant_tensor_conversion_function
      return constant(v, dtype=dtype, name=name)
    File "F:\tensorflow3\lib\site-packages\tensorflow\python\framework\constant_op.py", line 246, in constant
      allow_broadcast=True)
    File "F:\tensorflow3\lib\site-packages\tensorflow\python\framework\constant_op.py", line 284, in _constant_impl
      allow_broadcast=allow_broadcast))
    File "F:\tensorflow3\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 467, in make_tensor_proto
      nparray = np.array(values, dtype=np_dt)
  TypeError: __int__ returned non-int (type NoneType)
  