Tensorflow:没有属性  numpy_input_fn'

时间:2017-04-10 04:37:29

标签: tensorflow

我正在使用Eclipse的PyDev for tensorflow版本:0.12.1
我直接从tensorflow文档中复制示例代码,
但找不到属性并返回

bi ^. bookerContact . _Just . fullName

尝试重新下载pydev和tensorflow,但没有一个工作

源代码:

@Override
        public View getView(int i, View view, ViewGroup viewGroup) {

    //If view not created, inflate the view
    ViewHolder viewHolder;
    if(view == null){
        viewHolder = new ViewHolder();
        LayoutInflater inflater = (LayoutInflater) currentContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);

        view = inflater.inflate(R.layout.user_item, null);

        //attach the ViewHolder to this view
        viewHolder = new ViewHolder();
        viewHolder.userName = (TextView) view.findViewById(R.id.uNameTextView);
        viewHolder.userAge = (TextView) view.findViewById(R.id.uAgeTextView);
        view.setTag(viewHolder);
    }
    else{
        //View already created
        viewHolder = (ViewHolder) view.getTag();
    }

    viewHolder.uName.setText(userList.get(i).getUserName());
    viewHolder.uAge.setText(userList.get(i).getUserAge());
    return view;
}

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题并通过升级修复了它:

enter image description here