Remove legacy shims for device.from_string and device.Device

Change: 122082760
This commit is contained in:
RJ Ryan 2016-05-11 11:48:02 -08:00 committed by TensorFlower Gardener
parent c4a3d490a8
commit 851012c010

View File

@ -227,12 +227,6 @@ class DeviceSpec(object):
return DeviceSpec().parse_from_string(spec)
# For backwards compatibility.
# TODO(rjryan): Fix all callers then remove.
Device = DeviceSpec
from_string = DeviceSpec.from_string
def check_valid(spec):
"""Check that a device spec is valid.