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

Method call

tensorflow/python/keras/engine/base_layer_test.py:63–68  ·  view source on GitHub ↗
(self, inputs)

Source from the content-addressed store, hash-verified

61 super(DynamicLayer, self).__init__(dynamic=dynamic, **kwargs)
62
63 def call(self, inputs):
64 samples = tensor_array_ops.TensorArray(
65 dtype=dtypes.float32, size=array_ops.shape(inputs)[0])
66 for idx, sample in enumerate(inputs):
67 samples = samples.write(idx, math_ops.square(sample))
68 return samples.stack()
69
70 def compute_output_shape(self, input_shape):
71 return input_shape

Callers

nothing calls this directly

Calls 5

writeMethod · 0.95
stackMethod · 0.95
TensorArrayMethod · 0.80
shapeMethod · 0.45
squareMethod · 0.45

Tested by

no test coverage detected