title: Crash on TF Detect app for some faster rcnn models.
body: <p>I'm training some faster rcnn models with only one class on 
  my own data set. The training goes fine but when I export 
  model for inference and try to used it on android sample app
  (TF Detect), I'm getting the following exception:</p>
  
  <p>11-28 10:56:27.002 15666 16593 E AndroidRuntime: FATAL EXCEPTION: inference
  11-28 10:56:27.002 15666 16593 E AndroidRuntime: Process: org.tensorflow.demo, PID: 15666
  11-28 10:56:27.002 15666 16593 E AndroidRuntime: java.nio.BufferOverflowException
  11-28 10:56:27.002 15666 16593 E AndroidRuntime:    at java.nio.HeapFloatBuffer.put(HeapFloatBuffer.java:179)
  11-28 10:56:27.002 15666 16593 E AndroidRuntime:    at org.tensorflow.Tensor.writeTo(Tensor.java:488)
  11-28 10:56:27.002 15666 16593 E AndroidRuntime:    at org.tensorflow.contrib.android.TensorFlowInferenceInterface.fetch(TensorFlowInferenceInterface.java:478)
  11-28 10:56:27.002 15666 16593 E AndroidRuntime:    at org.tensorflow.contrib.android.TensorFlowInferenceInterface.fetch(TensorFlowInferenceInterface.java:432)
  11-28 10:56:27.002 15666 16593 E AndroidRuntime:    at org.tensorflow.demo.TensorFlowObjectDetectionAPIModel.recognizeImage(TensorFlowObjectDetectionAPIModel.java:167)</p>
  
  <p>at the following line of code from TensorFlowObjectDetectionAPIModel class: </p>
  
  <p>inferenceInterface.fetch(outputNames[0], outputLocations);</p>
  
  <p>I tried these two models: </p>
  
  <p>faster_rcnn_resnet101_pets
  faster_rcnn_inception_v2_pets</p>
  
  <p>Do you have any idea about what is causing this exception?</p>
  
  <p>Regards,</p>