MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / remove

Method remove

tensorflow/contrib/labeled_tensor/python/ops/core.py:257–262  ·  view source on GitHub ↗

Creates a new Axes object without the given axis.

(self, axis_name)

Source from the content-addressed store, hash-verified

255
256 @tc.accepts(object, string_types)
257 def remove(self, axis_name):
258 """Creates a new Axes object without the given axis."""
259 if axis_name not in self:
260 raise KeyError(axis_name)
261 remaining_axes = [axis for axis in self.values() if axis.name != axis_name]
262 return Axes(remaining_axes)
263
264
265class LabeledTensor(object):

Callers 15

mainFunction · 0.45
loss_augmented_fitMethod · 0.45
_variable_creatorMethod · 0.45
_gather_1d_on_axisFunction · 0.45
concatFunction · 0.45
output_axesFunction · 0.45
test_removeMethod · 0.45
tearDownMethod · 0.45
runOnModuleMethod · 0.45
GetNewIslandOperandsFunction · 0.45
CollectMetadataFunction · 0.45

Calls 2

AxesClass · 0.85
valuesMethod · 0.45

Tested by 3

loss_augmented_fitMethod · 0.36
test_removeMethod · 0.36
tearDownMethod · 0.36