Skip to content

Tensorflow tutorial broken with "unexpected keyword argument 'half_pixel_centers'" #4101

@ic

Description

@ic

Running the tutorial after compiling from source breaks with either TF1.14 or TF2 (I did not try any other version):

python tutorials/frontend/from_tensorflow.py
...
Traceback (most recent call last):

  File "tutorials/frontend/from_tensorflow.py", line 129, in <module>
    shape=shape_dict)

  File "tvm/python/tvm/relay/frontend/tensorflow.py", line 2375, in from_tensorflow
    mod, params = g.from_tensorflow(graph, layout, shape, outputs)

  File "tvm/python/tvm/relay/frontend/tensorflow.py", line 2020, in from_tensorflow
    op = self._convert_operator(node.op, inputs, attr, graph)

  File "tvm/python/tvm/relay/frontend/tensorflow.py", line 2338, in _convert_operator
    sym = convert_map[op_name](inputs, attrs, self._params)

  File "tvm/python/tvm/relay/frontend/tensorflow.py", line 411, in _impl
    extras={'method': "bilinear"})(inputs, attr)

  File "tvm/python/tvm/relay/frontend/common.py", line 412, in __call__
    return get_relay_op(op_name)(*inputs, **new_attrs)

TypeError: resize() got an unexpected keyword argument 'half_pixel_centers'

Here is a WIP attempt at introducing the attribute. Before committing more time, I would appreciate feedback/confirmation, as a definite new comer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions