
org.tensorflow.framework.DeviceOrBuilder Maven / Gradle / Ivy
// 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);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy