Commit da972bdf by Wu Zhao Committed by Tianqi Chen

[TFLite][Python 2] Solve TFLite frontend python 2 compatibility and Modify…

[TFLite][Python 2] Solve TFLite frontend python 2 compatibility and Modify TFLite whl files path (#2529)
parent ad8fc8cd
......@@ -546,7 +546,7 @@ def get_pad_value(data, kernel, stride):
pad tuple of value
"""
out = math.ceil(float(data) / float(stride))
out = int(math.ceil(float(data) / float(stride)))
pad = max(0, (out - 1) * stride + kernel - data)
pad_before = pad // 2
pad_after = pad - pad_before
......
......@@ -18,11 +18,11 @@ To install TFlite packages, you could use our prebuilt wheel:
.. code-block:: bash
# For python3:
wget https://github.com/dmlc/web-data/tree/master/tensorflow/tflite/whl/tflite-0.0.1-py3-none-any.whl
wget https://raw.githubusercontent.com/dmlc/web-data/master/tensorflow/tflite/whl/tflite-0.0.1-py3-none-any.whl
pip install tflite-0.0.1-py3-none-any.whl --user
# For python2:
wget https://github.com/dmlc/web-data/tree/master/tensorflow/tflite/whl/tflite-0.0.1-py2-none-any.whl
wget https://raw.githubusercontent.com/dmlc/web-data/master/tensorflow/tflite/whl/tflite-0.0.1-py2-none-any.whl
pip install tflite-0.0.1-py2-none-any.whl --user
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment