diff options
author | 2017-04-20 12:14:39 -0800 | |
---|---|---|
committer | 2017-04-20 13:27:04 -0700 | |
commit | 708f708a458f0a4754094a5a65fb029131b2255d (patch) | |
tree | 1e69aae8e9f7050eb0459e2e2f43bb360a17a990 | |
parent | 1872e57a3beaa0138bb24a69074da874a37d1943 (diff) |
Renamed kernel for AudioSpectrogram op to match op name
Change: 153747523
-rw-r--r-- | tensorflow/core/kernels/spectrogram_op.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tensorflow/core/kernels/spectrogram_op.cc b/tensorflow/core/kernels/spectrogram_op.cc index 98d9bb1ad1..8e64596b53 100644 --- a/tensorflow/core/kernels/spectrogram_op.cc +++ b/tensorflow/core/kernels/spectrogram_op.cc @@ -26,9 +26,10 @@ limitations under the License. namespace tensorflow { // Create a spectrogram frequency visualization from audio data. -class SpectrogramOp : public OpKernel { +class AudioSpectrogramOp : public OpKernel { public: - explicit SpectrogramOp(OpKernelConstruction* context) : OpKernel(context) { + explicit AudioSpectrogramOp(OpKernelConstruction* context) + : OpKernel(context) { OP_REQUIRES_OK(context, context->GetAttr("window_size", &window_size_)); OP_REQUIRES_OK(context, context->GetAttr("stride", &stride_)); OP_REQUIRES_OK(context, @@ -115,6 +116,6 @@ class SpectrogramOp : public OpKernel { bool magnitude_squared_; }; REGISTER_KERNEL_BUILDER(Name("AudioSpectrogram").Device(DEVICE_CPU), - SpectrogramOp); + AudioSpectrogramOp); } // namespace tensorflow |