Home | History | Annotate | Download | only in util
      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 """Utilities for dealing with Tensors.
     17 
     18 See @{$python/contrib.util} guide.
     19 
     20 @@constant_value
     21 @@make_tensor_proto
     22 @@make_ndarray
     23 @@ops_used_by_graph_def
     24 @@stripped_op_list_for_graph
     25 
     26 """
     27 
     28 from __future__ import absolute_import
     29 from __future__ import division
     30 from __future__ import print_function
     31 
     32 # pylint: disable=unused-import
     33 from tensorflow.python.framework.meta_graph import ops_used_by_graph_def
     34 from tensorflow.python.framework.meta_graph import stripped_op_list_for_graph
     35 from tensorflow.python.framework.tensor_util import constant_value
     36 from tensorflow.python.framework.tensor_util import make_tensor_proto
     37 from tensorflow.python.framework.tensor_util import MakeNdarray as make_ndarray
     38 # pylint: disable=unused_import
     39 from tensorflow.python.util.all_util import remove_undocumented
     40 remove_undocumented(__name__)
     41