Skip to content

Partially specified NodeDef.attr #84

@brandonwillard

Description

@brandonwillard

It might be worth investigating a way to partially specify the NodeDef.attr dict, especially since complete removal/reassignment causes problems for constants (the Numpy constant value is held in that map). In other words, it would be like saying "NodeDef.attr is a dict that at least contains a "data" key."

A nice way of doing this could make use of a partially specified cons map: i.e. an object like cons(('data', 1), ..., var()) that represents OrderedDict(('data': 1), ...). We would need a helper class to provide the standard dict interface and a means of stating that the cdr must ultimately be an OrderedDict; otherwise, cons will already work in this capacity.

Originally posted by @brandonwillard in #35 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    TensorFlowThis issue involves the TensorFlow backendenhancementNew feature or requestmeta graphThis issue involves the meta graph objects

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions