(self, inputs)
| 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 |
nothing calls this directly
no test coverage detected