Package onnx

Interface OnnxMl.TypeProto.SparseTensorOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getElemType()
      This field MUST NOT have the value of UNDEFINED This field MUST have a valid TensorProto.DataType value This field MUST be present for this version of the IR.
      OnnxMl.TensorShapeProto getShape()
      .onnx.TensorShapeProto shape = 2;
      OnnxMl.TensorShapeProtoOrBuilder getShapeOrBuilder()
      .onnx.TensorShapeProto shape = 2;
      boolean hasShape()
      .onnx.TensorShapeProto shape = 2;
      • Methods inherited from interface org.nd4j.shade.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface org.nd4j.shade.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getElemType

        int getElemType()
         This field MUST NOT have the value of UNDEFINED
         This field MUST have a valid TensorProto.DataType value
         This field MUST be present for this version of the IR.
         
        int32 elem_type = 1;
        Returns:
        The elemType.
      • hasShape

        boolean hasShape()
        .onnx.TensorShapeProto shape = 2;
        Returns:
        Whether the shape field is set.