2e2cd37c84d80ca4f1a1384d75f1b183f1185ee1,python/baseline/tf/remote.py,RemoteModelGRPCTensorFlowPreproc,create_request,#RemoteModelGRPCTensorFlowPreproc#Any#,27
Before Change
for key in examples:
if key.endswith("lengths"):
shape = examples[key].shape
tensor_proto = tf.contrib.util.make_tensor_proto(examples[key], shape=shape, dtype=tf.int32)
request.inputs[key].CopyFrom(
tensor_proto
)
else:
request.inputs[key].CopyFrom(
tf.contrib.util.make_tensor_proto(examples[key], shape=[len(examples[key]), 1])
)
After Change
request.model_spec.version.value = self.version
for key in examples:
if key.endswith("lengths"):
continue
request.inputs[key].CopyFrom(
tf.contrib.util.make_tensor_proto(examples[key], shape=[len(examples[key]), 1])
)
return request
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: dpressel/mead-baseline
Commit Name: 2e2cd37c84d80ca4f1a1384d75f1b183f1185ee1
Time: 2019-11-12
Author: blester125@gmail.com
File Name: python/baseline/tf/remote.py
Class Name: RemoteModelGRPCTensorFlowPreproc
Method Name: create_request
Project Name: hanxiao/bert-as-service
Commit Name: 7f6db8878558804f8d0a0e53de4c4b71397473f4
Time: 2019-01-18
Author: hanhxiao@tencent.com
File Name: server/bert_serving/server/graph.py
Class Name:
Method Name: convert_variables_to_constants
Project Name: hanxiao/bert-as-service
Commit Name: fe4636e1cadad7f7aa6892f3e4e854aa80d94a0f
Time: 2019-01-18
Author: hanhxiao@tencent.com
File Name: server/bert_serving/server/graph.py
Class Name:
Method Name: convert_variables_to_constants