Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/framework/step_stats.proto
package org.tensorflow.framework;
/**
*
* Time/size stats recorded for a single execution of a graph node.
*
*
* Protobuf type {@code tensorflow.NodeExecStats}
*/
public final class NodeExecStats extends
com.github.os72.protobuf351.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.NodeExecStats)
NodeExecStatsOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeExecStats.newBuilder() to construct.
private NodeExecStats(com.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeExecStats() {
nodeName_ = "";
allStartMicros_ = 0L;
opStartRelMicros_ = 0L;
opEndRelMicros_ = 0L;
allEndRelMicros_ = 0L;
memory_ = java.util.Collections.emptyList();
output_ = java.util.Collections.emptyList();
timelineLabel_ = "";
scheduledMicros_ = 0L;
threadId_ = 0;
referencedTensor_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeExecStats(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
nodeName_ = s;
break;
}
case 16: {
allStartMicros_ = input.readInt64();
break;
}
case 24: {
opStartRelMicros_ = input.readInt64();
break;
}
case 32: {
opEndRelMicros_ = input.readInt64();
break;
}
case 40: {
allEndRelMicros_ = input.readInt64();
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
memory_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
memory_.add(
input.readMessage(org.tensorflow.framework.AllocatorMemoryUsed.parser(), extensionRegistry));
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
output_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
output_.add(
input.readMessage(org.tensorflow.framework.NodeOutput.parser(), extensionRegistry));
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
timelineLabel_ = s;
break;
}
case 72: {
scheduledMicros_ = input.readInt64();
break;
}
case 80: {
threadId_ = input.readUInt32();
break;
}
case 90: {
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
referencedTensor_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000400;
}
referencedTensor_.add(
input.readMessage(org.tensorflow.framework.AllocationDescription.parser(), extensionRegistry));
break;
}
case 98: {
org.tensorflow.framework.MemoryStats.Builder subBuilder = null;
if (memoryStats_ != null) {
subBuilder = memoryStats_.toBuilder();
}
memoryStats_ = input.readMessage(org.tensorflow.framework.MemoryStats.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(memoryStats_);
memoryStats_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
memory_ = java.util.Collections.unmodifiableList(memory_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
output_ = java.util.Collections.unmodifiableList(output_);
}
if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
referencedTensor_ = java.util.Collections.unmodifiableList(referencedTensor_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.StepStatsProtos.internal_static_tensorflow_NodeExecStats_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.StepStatsProtos.internal_static_tensorflow_NodeExecStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.NodeExecStats.class, org.tensorflow.framework.NodeExecStats.Builder.class);
}
private int bitField0_;
public static final int NODE_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object nodeName_;
/**
*
* TODO(tucker): Use some more compact form of node identity than
* the full string name. Either all processes should agree on a
* global id (cost_id?) for each node, or we should use a hash of
* the name.
*
* TODO(tucker): Use some more compact form of node identity than
* the full string name. Either all processes should agree on a
* global id (cost_id?) for each node, or we should use a hash of
* the name.
*
*
* string node_name = 1;
*/
public com.github.os72.protobuf351.ByteString
getNodeNameBytes() {
java.lang.Object ref = nodeName_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
nodeName_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
public static final int ALL_START_MICROS_FIELD_NUMBER = 2;
private long allStartMicros_;
/**
* int64 all_start_micros = 2;
*/
public long getAllStartMicros() {
return allStartMicros_;
}
public static final int OP_START_REL_MICROS_FIELD_NUMBER = 3;
private long opStartRelMicros_;
/**
* int64 op_start_rel_micros = 3;
*/
public long getOpStartRelMicros() {
return opStartRelMicros_;
}
public static final int OP_END_REL_MICROS_FIELD_NUMBER = 4;
private long opEndRelMicros_;
/**
* int64 op_end_rel_micros = 4;
*/
public long getOpEndRelMicros() {
return opEndRelMicros_;
}
public static final int ALL_END_REL_MICROS_FIELD_NUMBER = 5;
private long allEndRelMicros_;
/**
* int64 all_end_rel_micros = 5;
*/
public long getAllEndRelMicros() {
return allEndRelMicros_;
}
public static final int MEMORY_FIELD_NUMBER = 6;
private java.util.List memory_;
/**
* repeated .tensorflow.AllocatorMemoryUsed memory = 6;
*/
public java.util.List getMemoryList() {
return memory_;
}
/**
* repeated .tensorflow.AllocatorMemoryUsed memory = 6;
*/
public java.util.List extends org.tensorflow.framework.AllocatorMemoryUsedOrBuilder>
getMemoryOrBuilderList() {
return memory_;
}
/**
* repeated .tensorflow.AllocatorMemoryUsed memory = 6;
*/
public int getMemoryCount() {
return memory_.size();
}
/**
* repeated .tensorflow.AllocatorMemoryUsed memory = 6;
*/
public org.tensorflow.framework.AllocatorMemoryUsed getMemory(int index) {
return memory_.get(index);
}
/**
* repeated .tensorflow.AllocatorMemoryUsed memory = 6;
*/
public org.tensorflow.framework.AllocatorMemoryUsedOrBuilder getMemoryOrBuilder(
int index) {
return memory_.get(index);
}
public static final int OUTPUT_FIELD_NUMBER = 7;
private java.util.List output_;
/**
* repeated .tensorflow.NodeOutput output = 7;
*/
public java.util.List getOutputList() {
return output_;
}
/**
* repeated .tensorflow.NodeOutput output = 7;
*/
public java.util.List extends org.tensorflow.framework.NodeOutputOrBuilder>
getOutputOrBuilderList() {
return output_;
}
/**
* repeated .tensorflow.NodeOutput output = 7;
*/
public int getOutputCount() {
return output_.size();
}
/**
* repeated .tensorflow.NodeOutput output = 7;
*/
public org.tensorflow.framework.NodeOutput getOutput(int index) {
return output_.get(index);
}
/**
* repeated .tensorflow.NodeOutput output = 7;
*/
public org.tensorflow.framework.NodeOutputOrBuilder getOutputOrBuilder(
int index) {
return output_.get(index);
}
public static final int TIMELINE_LABEL_FIELD_NUMBER = 8;
private volatile java.lang.Object timelineLabel_;
/**
* string timeline_label = 8;
*/
public java.lang.String getTimelineLabel() {
java.lang.Object ref = timelineLabel_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
timelineLabel_ = s;
return s;
}
}
/**
* string timeline_label = 8;
*/
public com.github.os72.protobuf351.ByteString
getTimelineLabelBytes() {
java.lang.Object ref = timelineLabel_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
timelineLabel_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
public static final int SCHEDULED_MICROS_FIELD_NUMBER = 9;
private long scheduledMicros_;
/**
* int64 scheduled_micros = 9;
*/
public long getScheduledMicros() {
return scheduledMicros_;
}
public static final int THREAD_ID_FIELD_NUMBER = 10;
private int threadId_;
/**
* uint32 thread_id = 10;
*/
public int getThreadId() {
return threadId_;
}
public static final int REFERENCED_TENSOR_FIELD_NUMBER = 11;
private java.util.List referencedTensor_;
/**
* repeated .tensorflow.AllocationDescription referenced_tensor = 11;
*/
public java.util.List getReferencedTensorList() {
return referencedTensor_;
}
/**
* repeated .tensorflow.AllocationDescription referenced_tensor = 11;
*/
public java.util.List extends org.tensorflow.framework.AllocationDescriptionOrBuilder>
getReferencedTensorOrBuilderList() {
return referencedTensor_;
}
/**
* repeated .tensorflow.AllocationDescription referenced_tensor = 11;
*/
public int getReferencedTensorCount() {
return referencedTensor_.size();
}
/**
* repeated .tensorflow.AllocationDescription referenced_tensor = 11;
*/
public org.tensorflow.framework.AllocationDescription getReferencedTensor(int index) {
return referencedTensor_.get(index);
}
/**
* repeated .tensorflow.AllocationDescription referenced_tensor = 11;
*/
public org.tensorflow.framework.AllocationDescriptionOrBuilder getReferencedTensorOrBuilder(
int index) {
return referencedTensor_.get(index);
}
public static final int MEMORY_STATS_FIELD_NUMBER = 12;
private org.tensorflow.framework.MemoryStats memoryStats_;
/**
* .tensorflow.MemoryStats memory_stats = 12;
*/
public boolean hasMemoryStats() {
return memoryStats_ != null;
}
/**
* .tensorflow.MemoryStats memory_stats = 12;
*/
public org.tensorflow.framework.MemoryStats getMemoryStats() {
return memoryStats_ == null ? org.tensorflow.framework.MemoryStats.getDefaultInstance() : memoryStats_;
}
/**
* .tensorflow.MemoryStats memory_stats = 12;
*/
public org.tensorflow.framework.MemoryStatsOrBuilder getMemoryStatsOrBuilder() {
return getMemoryStats();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
if (!getNodeNameBytes().isEmpty()) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, nodeName_);
}
if (allStartMicros_ != 0L) {
output.writeInt64(2, allStartMicros_);
}
if (opStartRelMicros_ != 0L) {
output.writeInt64(3, opStartRelMicros_);
}
if (opEndRelMicros_ != 0L) {
output.writeInt64(4, opEndRelMicros_);
}
if (allEndRelMicros_ != 0L) {
output.writeInt64(5, allEndRelMicros_);
}
for (int i = 0; i < memory_.size(); i++) {
output.writeMessage(6, memory_.get(i));
}
for (int i = 0; i < output_.size(); i++) {
output.writeMessage(7, output_.get(i));
}
if (!getTimelineLabelBytes().isEmpty()) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 8, timelineLabel_);
}
if (scheduledMicros_ != 0L) {
output.writeInt64(9, scheduledMicros_);
}
if (threadId_ != 0) {
output.writeUInt32(10, threadId_);
}
for (int i = 0; i < referencedTensor_.size(); i++) {
output.writeMessage(11, referencedTensor_.get(i));
}
if (memoryStats_ != null) {
output.writeMessage(12, getMemoryStats());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNodeNameBytes().isEmpty()) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, nodeName_);
}
if (allStartMicros_ != 0L) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt64Size(2, allStartMicros_);
}
if (opStartRelMicros_ != 0L) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt64Size(3, opStartRelMicros_);
}
if (opEndRelMicros_ != 0L) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt64Size(4, opEndRelMicros_);
}
if (allEndRelMicros_ != 0L) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt64Size(5, allEndRelMicros_);
}
for (int i = 0; i < memory_.size(); i++) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(6, memory_.get(i));
}
for (int i = 0; i < output_.size(); i++) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(7, output_.get(i));
}
if (!getTimelineLabelBytes().isEmpty()) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(8, timelineLabel_);
}
if (scheduledMicros_ != 0L) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt64Size(9, scheduledMicros_);
}
if (threadId_ != 0) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeUInt32Size(10, threadId_);
}
for (int i = 0; i < referencedTensor_.size(); i++) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(11, referencedTensor_.get(i));
}
if (memoryStats_ != null) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(12, getMemoryStats());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.framework.NodeExecStats)) {
return super.equals(obj);
}
org.tensorflow.framework.NodeExecStats other = (org.tensorflow.framework.NodeExecStats) obj;
boolean result = true;
result = result && getNodeName()
.equals(other.getNodeName());
result = result && (getAllStartMicros()
== other.getAllStartMicros());
result = result && (getOpStartRelMicros()
== other.getOpStartRelMicros());
result = result && (getOpEndRelMicros()
== other.getOpEndRelMicros());
result = result && (getAllEndRelMicros()
== other.getAllEndRelMicros());
result = result && getMemoryList()
.equals(other.getMemoryList());
result = result && getOutputList()
.equals(other.getOutputList());
result = result && getTimelineLabel()
.equals(other.getTimelineLabel());
result = result && (getScheduledMicros()
== other.getScheduledMicros());
result = result && (getThreadId()
== other.getThreadId());
result = result && getReferencedTensorList()
.equals(other.getReferencedTensorList());
result = result && (hasMemoryStats() == other.hasMemoryStats());
if (hasMemoryStats()) {
result = result && getMemoryStats()
.equals(other.getMemoryStats());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NODE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getNodeName().hashCode();
hash = (37 * hash) + ALL_START_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong(
getAllStartMicros());
hash = (37 * hash) + OP_START_REL_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong(
getOpStartRelMicros());
hash = (37 * hash) + OP_END_REL_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong(
getOpEndRelMicros());
hash = (37 * hash) + ALL_END_REL_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong(
getAllEndRelMicros());
if (getMemoryCount() > 0) {
hash = (37 * hash) + MEMORY_FIELD_NUMBER;
hash = (53 * hash) + getMemoryList().hashCode();
}
if (getOutputCount() > 0) {
hash = (37 * hash) + OUTPUT_FIELD_NUMBER;
hash = (53 * hash) + getOutputList().hashCode();
}
hash = (37 * hash) + TIMELINE_LABEL_FIELD_NUMBER;
hash = (53 * hash) + getTimelineLabel().hashCode();
hash = (37 * hash) + SCHEDULED_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong(
getScheduledMicros());
hash = (37 * hash) + THREAD_ID_FIELD_NUMBER;
hash = (53 * hash) + getThreadId();
if (getReferencedTensorCount() > 0) {
hash = (37 * hash) + REFERENCED_TENSOR_FIELD_NUMBER;
hash = (53 * hash) + getReferencedTensorList().hashCode();
}
if (hasMemoryStats()) {
hash = (37 * hash) + MEMORY_STATS_FIELD_NUMBER;
hash = (53 * hash) + getMemoryStats().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.NodeExecStats parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.NodeExecStats parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.NodeExecStats parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.NodeExecStats parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.NodeExecStats parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.NodeExecStats parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.NodeExecStats parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.NodeExecStats parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.NodeExecStats parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.NodeExecStats parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.NodeExecStats parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.NodeExecStats parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.framework.NodeExecStats prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Time/size stats recorded for a single execution of a graph node.
*
* TODO(tucker): Use some more compact form of node identity than
* the full string name. Either all processes should agree on a
* global id (cost_id?) for each node, or we should use a hash of
* the name.
*
* TODO(tucker): Use some more compact form of node identity than
* the full string name. Either all processes should agree on a
* global id (cost_id?) for each node, or we should use a hash of
* the name.
*
* TODO(tucker): Use some more compact form of node identity than
* the full string name. Either all processes should agree on a
* global id (cost_id?) for each node, or we should use a hash of
* the name.
*
* TODO(tucker): Use some more compact form of node identity than
* the full string name. Either all processes should agree on a
* global id (cost_id?) for each node, or we should use a hash of
* the name.
*
* TODO(tucker): Use some more compact form of node identity than
* the full string name. Either all processes should agree on a
* global id (cost_id?) for each node, or we should use a hash of
* the name.
*