52 auto graph = context->
graph();
53 auto reader = context->
reader();
54 const auto tensors = reader->
tensors();
55 const auto variable_tensor = tensors[tensor_index];
56 assert(variable_tensor !=
nullptr);
58 if (not variable_tensor->is_variable())
66 assert(reader->buffers()[variable_tensor->buffer()] !=
nullptr);
67 assert(reader->buffers()[variable_tensor->buffer()]->data() ==
nullptr);
74 INFO(l) <<
"[luci] NodeFinder variable node(" << tensor_index <<
") -> " << variable_node <<
" "
75 <<
wrap(variable_tensor->shape()) << std::endl;
Class to store context to build loco graph IR from TensorFlow.
void copy_tensor_attributes(const circle::Tensor *tensor, CircleNode *node)
Copy common tensor attributes such as name, type, etc. to node.