tr.tensor_names(0) returns something like smdebug/reductions/max/tensorname. It should only be returning tensorname. This is happening because the tensorname is being inserted into mode_to_tensors_map like that. Maybe global_step_to_tensors_map also needs to be looked at.