Interface Model.ModelProtoOrBuilder

All Superinterfaces:
MessageLiteOrBuilder, MessageOrBuilder
All Known Implementing Classes:
Model.ModelProto, Model.ModelProto.Builder
Enclosing class:
Model

public static interface Model.ModelProtoOrBuilder extends MessageOrBuilder
  • Method Details

    • getDatasetName

      String getDatasetName()
      User-defined name for the dataset. Empty if no name was set.
      
      string dataset_name = 7;
      Returns:
      The datasetName.
    • getDatasetNameBytes

      ByteString getDatasetNameBytes()
      User-defined name for the dataset. Empty if no name was set.
      
      string dataset_name = 7;
      Returns:
      The bytes for datasetName.
    • getNodesCount

      int getNodesCount()
      Map of node IDs to nodes of this model.
      
      map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1;
    • containsNodes

      boolean containsNodes(long key)
      Map of node IDs to nodes of this model.
      
      map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1;
    • getNodes

      Deprecated.
      Use getNodesMap() instead.
    • getNodesMap

      Map<Long, Model.ModelProto.Node> getNodesMap()
      Map of node IDs to nodes of this model.
      
      map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1;
    • getNodesOrDefault

      Model.ModelProto.Node getNodesOrDefault(long key, Model.ModelProto.Node defaultValue)
      Map of node IDs to nodes of this model.
      
      map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1;
    • getNodesOrThrow

      Model.ModelProto.Node getNodesOrThrow(long key)
      Map of node IDs to nodes of this model.
      
      map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1;
    • getOutput

      long getOutput()
      ID of the output node of this model.
      
      int64 output = 2;
      Returns:
      The output.
    • getIdCounter

      long getIdCounter()
      Counter for node IDs of this model.
      
      int64 id_counter = 3;
      Returns:
      The idCounter.
    • hasOptimizationParams

      boolean hasOptimizationParams()
      .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5;
      Returns:
      Whether the optimizationParams field is set.
    • getOptimizationParams

      Model.ModelProto.OptimizationParams getOptimizationParams()
      .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5;
      Returns:
      The optimizationParams.
    • getOptimizationParamsOrBuilder

      Model.ModelProto.OptimizationParamsOrBuilder getOptimizationParamsOrBuilder()
      .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5;
    • getGapTimesList

      List<Long> getGapTimesList()
      repeated uint64 gap_times = 6;
      Returns:
      A list containing the gapTimes.
    • getGapTimesCount

      int getGapTimesCount()
      repeated uint64 gap_times = 6;
      Returns:
      The count of gapTimes.
    • getGapTimes

      long getGapTimes(int index)
      repeated uint64 gap_times = 6;
      Parameters:
      index - The index of the element to return.
      Returns:
      The gapTimes at the given index.