class_docstr: This is a base class used to create Caffe2 operator benchmark
class_docstr_tok: ["This","is","a","base","class","used","to","create","Caffe2","operator","benchmark"]
docstr: if value is bool, we will convert it to 0 and 1
docstr_tok: ["if","value","is","bool",",","we","will","convert","it","to","0","and","1"]
code: def _value_to_str(self, value):
      """if value is bool, we will convert it to 0 and 1"""
      ret = value
      if type(value) == bool:
          ret = int(value)
      return str(ret)
  
imports: from collections import namedtuple
  import benchmark_utils
  from benchmark_test_generator import _register_test
  from caffe2.proto import caffe2_pb2
  from caffe2.python import core, workspace
  from .benchmark_core import TestConfig
label_desc: Use image node_id 8 for calling the Caffe2BenchmarkBase obj's underlying member method code with example usage: obj._value_to_str(value) and returns: str