org.tensorflow.framework.DeviceOrBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto Show documentation
Show all versions of proto Show documentation
Java API for TensorFlow protocol buffers.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/protobuf/trace_events.proto
package org.tensorflow.framework;
public interface DeviceOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.profiler.Device)
com.google.protobuf.MessageOrBuilder {
/**
*
* The name of the device.
*
*
* string name = 1;
*/
java.lang.String getName();
/**
*
* The name of the device.
*
*
* string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* The id of this device, unique in a single trace.
*
*
* uint32 device_id = 2;
*/
int getDeviceId();
/**
*
* The resources on this device, keyed by resource_id;
*
*
* map<uint32, .tensorflow.profiler.Resource> resources = 3;
*/
int getResourcesCount();
/**
*
* The resources on this device, keyed by resource_id;
*
*
* map<uint32, .tensorflow.profiler.Resource> resources = 3;
*/
boolean containsResources(
int key);
/**
* Use {@link #getResourcesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getResources();
/**
*
* The resources on this device, keyed by resource_id;
*
*
* map<uint32, .tensorflow.profiler.Resource> resources = 3;
*/
java.util.Map
getResourcesMap();
/**
*
* The resources on this device, keyed by resource_id;
*
*
* map<uint32, .tensorflow.profiler.Resource> resources = 3;
*/
org.tensorflow.framework.Resource getResourcesOrDefault(
int key,
org.tensorflow.framework.Resource defaultValue);
/**
*
* The resources on this device, keyed by resource_id;
*
*
* map<uint32, .tensorflow.profiler.Resource> resources = 3;
*/
org.tensorflow.framework.Resource getResourcesOrThrow(
int key);
}