Skip to content

Can't get Output Context #411

Closed
Closed

Description

@Esther2013

The _MergeGrad get null for op_ctxt:

image

Activity

  1. self-assigned this
    on Oct 1, 2019
  2. added
    bug
    on Oct 1, 2019
  3. Oceania2018 commented on Oct 1, 2019

    @Oceania2018
    Member

    _control_flow_context is lost, hard to fix.
    Working hard on this issue.

  4. Oceania2018 commented on Oct 1, 2019

    @Oceania2018
    Member

    Some clue:
    The operation is recreated at:

    private InputList _inputs;
    public InputList inputs
            {
                get
                {
                    if (_inputs == null)
                    {
                        var retval = new Tensor[NumInputs];
    
                        for (int i = 0; i < NumInputs; i++)
                        {
                            var tf_output = Input(i);
                            var op = new Operation(tf_output.oper);

    This comment mentions c_api won't memory the control_flow_context, so the TensorFlow.NET must handle it by itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions