Skip to content

What's the meaning of 'Reshape' function's second paramter 'TFOutput shape'?  #298

Open
@axmand

Description

@axmand

I am trying to use Reshape like this

 var x = _graph.Placeholder(TFDataType.Float, new TFShape(-1, inputHeight * inputWidth), "state");
 var _x= _graph.Reshape(x, _graph.VariableV2(new TFShape(-1,inputWidth,inputHeight,1), TFDataType.Int32));

or

 var x = _graph.Placeholder(TFDataType.Float, new TFShape(-1, inputHeight * inputWidth), "state");
 var shape_variable = _graph.Shape(_graph.VariableV2(new TFShape(shapes), TFDataType.Float));
 var _x= _graph.Reshape(x, shape_variable);

the result puzzle me exceedingly.
What is the correct way to use it?(how to convert TFShape to TFOutput?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions