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: Similar to tensor, but can supply any data compatible with FeedBlob
docstr_tok: ["Similar","to","tensor",",","but","can","supply","any","data","compatible","with","FeedBlob"]
code: def feed_tensor(self, tensor, device="cpu"):
      """Similar to tensor, but can supply any data compatible with FeedBlob"""
      blob_name = "blob_" + str(Caffe2BenchmarkBase.tensor_index)
      dev = self._device_option(device)
      with core.DeviceScope(dev):
          workspace.FeedBlob(blob_name, tensor)
      Caffe2BenchmarkBase.tensor_index += 1
      return blob_name
  
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 5 for calling the Caffe2BenchmarkBase obj's underlying member method code with example usage: obj.feed_tensor(tensor, device) and returns: blob_name