class_docstr: Extracts constant value from a `Const` NodeDef.
class_docstr_tok: ["Extracts","constant","value","from","a","`","Const","`","NodeDef","."]
docstr: Splits a NodeDef proto, and returns the size of the chunks created.
docstr_tok: ["Splits","a","NodeDef","proto",",","and","returns","the","size","of","the","chunks","created","."]
code: def build_chunks(self) -> int:
      """Splits a NodeDef proto, and returns the size of the chunks created."""
      if _ABOVE_MAX_SIZE(self.proto_size):
          constant_bytes = chunk_constant_value(
              self._proto, self.proto_size
          )
          self.add_chunk(
              constant_bytes,
              ["attr", "value", "tensor", "tensor_content"],
          )
          return len(constant_bytes)
      return 0
  
imports: from collections.abc import Sequence
  import itertools
  from typing import Optional, Type
  from google.protobuf import message
  from tensorflow.core.framework import graph_pb2
  from tensorflow.core.framework import node_def_pb2
  from tensorflow.python.framework import tensor_util
  from tensorflow.tools.proto_splitter import constants
  from tensorflow.tools.proto_splitter import split
  from tensorflow.tools.proto_splitter import util
label_desc: Use image node_id 1 for calling the ConstantNodeDefSplitter obj's underlying member method code with example usage: obj.build_chunks() and returns: int, len