Skip to content

Commit

Permalink
Use existing new_var function
Browse files Browse the repository at this point in the history
  • Loading branch information
nhynes committed Mar 18, 2019
1 parent 1b6caf4 commit 17127c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tvm/relay/frontend/keras.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .. import expr as _expr
from .. import op as _op
from ... import nd as _nd
from .common import ExprTable
from .common import ExprTable, new_var

__all__ = ['from_keras']

Expand Down Expand Up @@ -656,7 +656,7 @@ def from_keras(model, shape=None):
def _convert_input_layer(keras_layer):
input_name = keras_layer.name
input_shape = shape[input_name] if shape is not None and input_name in shape else None
etab.set_expr(input_name, _expr.var(input_name, shape=input_shape))
etab.set_expr(input_name, new_var(input_name, shape=input_shape))

etab = ExprTable()
for keras_layer in model.layers:
Expand Down

0 comments on commit 17127c2

Please sign in to comment.