Shortcuts

Class OrderedDict::Item

Nested Relationships

This class is a nested type of Template Class OrderedDict.

Class Documentation

class torch::OrderedDict::Item

Public Functions

Item(Key key, Value value)

Constructs a new item.

Value &operator*()

Returns a reference to the value.

const Value &operator*() const

Returns a reference to the value.

Value *operator->()

Allows access to the value using the arrow operator.

const Value *operator->() const

Allows access to the value using the arrow operator.

const Key &key() const noexcept

Returns a reference to the key.

Value &value() noexcept

Returns a reference to the value.

const Value &value() const noexcept

Returns a reference to the value.

const std::pair<Key, Value> &pair() const noexcept

Returns a (key, value) pair.

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources