• 大小: 92.14MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-03-02
  • 语言: 其他
  • 标签: t2t  tensor2tenso  google  

资源简介

可以参考 https://blog.csdn.net/csa121/article/category/7518359 学习使用

资源截图

代码片段和文件信息

# Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License Version 2.0 (the “License“);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing software
# distributed under the License is distributed on an “AS IS“ BASIS
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: tensorflow_serving/apis/model_service.proto
# To regenerate run
# python -m grpc.tools.protoc --python_out=. --grpc_python_out=. -I. tensorflow_serving/apis/model_service.proto

import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode(‘latin1‘))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from tensorflow_serving.apis import get_model_status_pb2 as tensorflow__serving_dot_apis_dot_get__model__status__pb2


DEscriptOR = _descriptor.FileDescriptor(
  name=‘tensorflow_serving/apis/model_service.proto‘
  package=‘tensorflow.serving‘
  syntax=‘proto3‘
  serialized_pb=_b(‘\n+tensorflow_serving/apis/model_service.proto\x12\x12tensorflow.serving\x1a.tensorflow_serving/apis/get_model_status.proto2w\n\x0cModelService\x12g\n\x0eGetModelStatus\x12).tensorflow.serving.GetModelStatusRequest\x1a*.tensorflow.serving.GetModelStatusResponseB\x03\xf8\x01\x01\x62\x06proto3‘)
  
  dependencies=[tensorflow__serving_dot_apis_dot_get__model__status__pb2.DEscriptOR])
_sym_db.RegisterFileDescriptor(DEscriptOR)





DEscriptOR.has_options = True
DEscriptOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions() _b(‘\370\001\001‘))
try:
  # THESE ELEMENTS WILL BE DEPRECATED.
  # Please use the generated *_pb2_grpc.py files instead.
  import grpc
  from grpc.framework.common import cardinality
  from grpc.framework.interfaces.face import utilities as face_utilities
  from grpc.beta import implementations as beta_implementations
  from grpc.beta import interfaces as beta_interfaces


  class ModelServiceStub(object):
    “““ModelService provides access to information about model versions
    that have been handled by the model server.
    “““

    def __init__(self channel):
      “““Constructor.

      Args:
        channel: A grpc.Channel.
      “““
      self.GetModelStatus = channel.unary_unary(
          ‘/tensorflow.serving.ModelService/GetModelStatus‘
          request_serializer=tensorflow__serving_dot_apis_dot_g

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-07-19 14:28  t2t\
     目录           0  2018-07-19 14:29  t2t\serving\
     目录           0  2018-07-19 14:29  t2t\serving\tools\
     文件         745  2018-07-19 14:29  t2t\serving\tools\bazel.rc
     目录           0  2018-07-19 14:28  t2t\serving\bazel-bin\
     目录           0  2018-07-19 14:35  t2t\serving\bazel-out\
     文件       11362  2018-07-19 14:28  t2t\serving\LICENSE
     文件         321  2018-07-19 14:28  t2t\serving\AUTHORS
     目录           0  2018-07-19 14:29  t2t\serving\bazel-testlogs\
     文件        1684  2018-07-19 14:28  t2t\serving\WORKSPACE
     文件        2587  2018-07-19 14:28  t2t\serving\README.md
     文件          56  2018-07-19 14:28  t2t\serving\RELEASE.md
     目录           0  2018-07-19 14:29  t2t\serving\tensorflow_serving\
     目录           0  2018-07-19 14:29  t2t\serving\tensorflow_serving\g3doc\
     目录           0  2018-07-19 14:29  t2t\serving\tensorflow_serving\g3doc\_includes\
     文件         524  2018-07-19 14:29  t2t\serving\tensorflow_serving\g3doc\_includes\nav.md
     文件         926  2018-07-19 14:29  t2t\serving\tensorflow_serving\g3doc\_includes\icon-github.svg
     文件         177  2018-07-19 14:29  t2t\serving\tensorflow_serving\g3doc\_includes\icon-github.html
     文件         787  2018-07-19 14:29  t2t\serving\tensorflow_serving\g3doc\_includes\icon-twitter.svg
     文件         768  2018-07-19 14:29  t2t\serving\tensorflow_serving\g3doc\_includes\head.html
     文件        1467  2018-07-19 14:29  t2t\serving\tensorflow_serving\g3doc\_includes\footer.html
     文件         148  2018-07-19 14:29  t2t\serving\tensorflow_serving\g3doc\_includes\header.html
     文件         180  2018-07-19 14:29  t2t\serving\tensorflow_serving\g3doc\_includes\icon-twitter.html
     文件       10848  2018-07-19 14:29  t2t\serving\tensorflow_serving\g3doc\serving_basic.md
     文件         187  2018-07-19 14:29  t2t\serving\tensorflow_serving\g3doc\leftnav_files
     文件       13128  2018-07-19 14:29  t2t\serving\tensorflow_serving\g3doc\serving_advanced.md
     目录           0  2018-07-19 14:29  t2t\serving\tensorflow_serving\g3doc\css\
     文件        1086  2018-07-19 14:29  t2t\serving\tensorflow_serving\g3doc\css\main.scss
     文件        7115  2018-07-19 14:29  t2t\serving\tensorflow_serving\g3doc\setup.md
     目录           0  2018-07-19 14:29  t2t\serving\tensorflow_serving\g3doc\images\
     文件       64424  2018-07-19 14:29  t2t\serving\tensorflow_serving\g3doc\images\tf_diagram.svg
............此处省略1080个文件信息

评论

共有 条评论