Home | History | Annotate | Download | only in io
      1 /* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
      2 
      3 Licensed under the Apache License, Version 2.0 (the "License");
      4 you may not use this file except in compliance with the License.
      5 You may obtain a copy of the License at
      6 
      7     http://www.apache.org/licenses/LICENSE-2.0
      8 
      9 Unless required by applicable law or agreed to in writing, software
     10 distributed under the License is distributed on an "AS IS" BASIS,
     11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12 See the License for the specific language governing permissions and
     13 limitations under the License.
     14 ==============================================================================*/
     15 
     16 %nothread tensorflow::io::PyRecordReader::GetNext;
     17 
     18 %include "tensorflow/python/platform/base.i"
     19 
     20 %feature("except") tensorflow::io::PyRecordReader::New {
     21   // Let other threads run while we read
     22   Py_BEGIN_ALLOW_THREADS
     23   $action
     24   Py_END_ALLOW_THREADS
     25 }
     26 
     27 %newobject tensorflow::io::PyRecordReader::New;
     28 
     29 %feature("except") tensorflow::io::PyRecordReader::GetNext {
     30   // Let other threads run while we read
     31   Py_BEGIN_ALLOW_THREADS
     32   $action
     33   Py_END_ALLOW_THREADS
     34 }
     35 
     36 %{
     37 #include "tensorflow/python/lib/io/py_record_reader.h"
     38 %}
     39 
     40 %ignoreall
     41 
     42 %unignore tensorflow;
     43 %unignore tensorflow::io;
     44 %unignore tensorflow::io::PyRecordReader;
     45 %unignore tensorflow::io::PyRecordReader::~PyRecordReader;
     46 %unignore tensorflow::io::PyRecordReader::GetNext;
     47 %unignore tensorflow::io::PyRecordReader::offset;
     48 %unignore tensorflow::io::PyRecordReader::record;
     49 %unignore tensorflow::io::PyRecordReader::Close;
     50 %unignore tensorflow::io::PyRecordReader::New;
     51 
     52 %include "tensorflow/python/lib/io/py_record_reader.h"
     53 
     54 %unignoreall
     55