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/util/test_log.proto
package org.tensorflow.util.testlog;
/**
*
* Each unit test or benchmark in a test or benchmark run provides
* some set of information. Here we provide some reasonable keys
* one would expect to see, with optional key/value pairs for things
* we haven't considered.
* This BenchmarkEntry should be emitted by each unit test or benchmark
* reporter.
*
*
* Protobuf type {@code tensorflow.BenchmarkEntry}
*/
public final class BenchmarkEntry extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.BenchmarkEntry)
BenchmarkEntryOrBuilder {
// Use BenchmarkEntry.newBuilder() to construct.
private BenchmarkEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private BenchmarkEntry() {
name_ = "";
iters_ = 0L;
cpuTime_ = 0D;
wallTime_ = 0D;
throughput_ = 0D;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private BenchmarkEntry(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 16: {
iters_ = input.readInt64();
break;
}
case 25: {
cpuTime_ = input.readDouble();
break;
}
case 33: {
wallTime_ = input.readDouble();
break;
}
case 41: {
throughput_ = input.readDouble();
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
extras_ = com.google.protobuf.MapField.newMapField(
ExtrasDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000020;
}
com.google.protobuf.MapEntry
extras__ = input.readMessage(
ExtrasDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
extras_.getMutableMap().put(
extras__.getKey(), extras__.getValue());
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.util.testlog.TestLogProtos.internal_static_tensorflow_BenchmarkEntry_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetExtras();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.util.testlog.TestLogProtos.internal_static_tensorflow_BenchmarkEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.util.testlog.BenchmarkEntry.class, org.tensorflow.util.testlog.BenchmarkEntry.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* The name of the specific benchmark or test
* (e.g. BM_AdjustContrast_gpu_B_W_H)
*
*
* map<string, .tensorflow.EntryValue> extras = 6;
*/
public org.tensorflow.util.testlog.EntryValue getExtrasOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetExtras().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (iters_ != 0L) {
output.writeInt64(2, iters_);
}
if (cpuTime_ != 0D) {
output.writeDouble(3, cpuTime_);
}
if (wallTime_ != 0D) {
output.writeDouble(4, wallTime_);
}
if (throughput_ != 0D) {
output.writeDouble(5, throughput_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetExtras(),
ExtrasDefaultEntryHolder.defaultEntry,
6);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (iters_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, iters_);
}
if (cpuTime_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, cpuTime_);
}
if (wallTime_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, wallTime_);
}
if (throughput_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, throughput_);
}
for (java.util.Map.Entry entry
: internalGetExtras().getMap().entrySet()) {
com.google.protobuf.MapEntry
extras__ = ExtrasDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, extras__);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.util.testlog.BenchmarkEntry)) {
return super.equals(obj);
}
org.tensorflow.util.testlog.BenchmarkEntry other = (org.tensorflow.util.testlog.BenchmarkEntry) obj;
boolean result = true;
result = result && getName()
.equals(other.getName());
result = result && (getIters()
== other.getIters());
result = result && (
java.lang.Double.doubleToLongBits(getCpuTime())
== java.lang.Double.doubleToLongBits(
other.getCpuTime()));
result = result && (
java.lang.Double.doubleToLongBits(getWallTime())
== java.lang.Double.doubleToLongBits(
other.getWallTime()));
result = result && (
java.lang.Double.doubleToLongBits(getThroughput())
== java.lang.Double.doubleToLongBits(
other.getThroughput()));
result = result && internalGetExtras().equals(
other.internalGetExtras());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + ITERS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getIters());
hash = (37 * hash) + CPU_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getCpuTime()));
hash = (37 * hash) + WALL_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getWallTime()));
hash = (37 * hash) + THROUGHPUT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getThroughput()));
if (!internalGetExtras().getMap().isEmpty()) {
hash = (37 * hash) + EXTRAS_FIELD_NUMBER;
hash = (53 * hash) + internalGetExtras().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.util.testlog.BenchmarkEntry parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.util.testlog.BenchmarkEntry parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.util.testlog.BenchmarkEntry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.util.testlog.BenchmarkEntry parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.util.testlog.BenchmarkEntry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.util.testlog.BenchmarkEntry parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.util.testlog.BenchmarkEntry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.util.testlog.BenchmarkEntry parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.util.testlog.BenchmarkEntry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.util.testlog.BenchmarkEntry parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.util.testlog.BenchmarkEntry parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.util.testlog.BenchmarkEntry parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.util.testlog.BenchmarkEntry 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.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Each unit test or benchmark in a test or benchmark run provides
* some set of information. Here we provide some reasonable keys
* one would expect to see, with optional key/value pairs for things
* we haven't considered.
* This BenchmarkEntry should be emitted by each unit test or benchmark
* reporter.
*
*
* Protobuf type {@code tensorflow.BenchmarkEntry}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.BenchmarkEntry)
org.tensorflow.util.testlog.BenchmarkEntryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.util.testlog.TestLogProtos.internal_static_tensorflow_BenchmarkEntry_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetExtras();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 6:
return internalGetMutableExtras();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.util.testlog.TestLogProtos.internal_static_tensorflow_BenchmarkEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.util.testlog.BenchmarkEntry.class, org.tensorflow.util.testlog.BenchmarkEntry.Builder.class);
}
// Construct using org.tensorflow.util.testlog.BenchmarkEntry.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
name_ = "";
iters_ = 0L;
cpuTime_ = 0D;
wallTime_ = 0D;
throughput_ = 0D;
internalGetMutableExtras().clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.util.testlog.TestLogProtos.internal_static_tensorflow_BenchmarkEntry_descriptor;
}
public org.tensorflow.util.testlog.BenchmarkEntry getDefaultInstanceForType() {
return org.tensorflow.util.testlog.BenchmarkEntry.getDefaultInstance();
}
public org.tensorflow.util.testlog.BenchmarkEntry build() {
org.tensorflow.util.testlog.BenchmarkEntry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.util.testlog.BenchmarkEntry buildPartial() {
org.tensorflow.util.testlog.BenchmarkEntry result = new org.tensorflow.util.testlog.BenchmarkEntry(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.name_ = name_;
result.iters_ = iters_;
result.cpuTime_ = cpuTime_;
result.wallTime_ = wallTime_;
result.throughput_ = throughput_;
result.extras_ = internalGetExtras();
result.extras_.makeImmutable();
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tensorflow.util.testlog.BenchmarkEntry) {
return mergeFrom((org.tensorflow.util.testlog.BenchmarkEntry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.util.testlog.BenchmarkEntry other) {
if (other == org.tensorflow.util.testlog.BenchmarkEntry.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.getIters() != 0L) {
setIters(other.getIters());
}
if (other.getCpuTime() != 0D) {
setCpuTime(other.getCpuTime());
}
if (other.getWallTime() != 0D) {
setWallTime(other.getWallTime());
}
if (other.getThroughput() != 0D) {
setThroughput(other.getThroughput());
}
internalGetMutableExtras().mergeFrom(
other.internalGetExtras());
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.util.testlog.BenchmarkEntry parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.util.testlog.BenchmarkEntry) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* The name of the specific benchmark or test
* (e.g. BM_AdjustContrast_gpu_B_W_H)
*