InvalidArgumentError:使用tfx时断言失败

问题描述

我正尝试使用此链接https://github.com/GoogleCloudPlatform/tf-estimator-tutorials/blob/master/00_Miscellaneous/tfx/02_tfx_end_to_end.ipynb使用tfx训练一个mo鼠 我在调用run_experiment()函数时遇到问题

错误:InvalidArgumentError:断言失败:[标签必须> = 0] [条件x> = 0并不按元素保存:] [x(head / loss / Cast:0)=] [[-1] [-1] [-1] ...] [[{{node Assert}}]]

我的run_experiment函数

    [HttpPost]
    [Route("/ProcessAssignment")]
    public IActionResult ProcessAssignment(AssignmentDetail model)
    {
        //var response = new AssignmentResponseModel();
        //try
        //{
        //    //can call function here to check the incomlpete JSON 
        //    //validateIncompleteJSON();


        //    //var result = await _mediator.Send(queryDetails);
        //    //response = result.Response;
        //}
        //catch (Exception ex)
        //{
        //    throw exception;
        //}
        //return response;

        if (ModelState.IsValid)
        {
            return Ok("Success");
        }
        return BadRequest();
    }

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...