Documentation ¶
Index ¶
- type JitModule
- func (module *JitModule) CastTo(dtype torch.Dtype) *JitModule
- func (module *JitModule) CopyTo(device *torch.Device) *JitModule
- func (module *JitModule) Eval() *JitModule
- func (module *JitModule) Forward(inputs []*torch.IValue) (output *torch.IValue)
- func (module *JitModule) IsTraining() bool
- func (module *JitModule) Save(path string) error
- func (module *JitModule) String() string
- func (module *JitModule) To(device *torch.Device, dtype torch.Dtype) *JitModule
- func (module *JitModule) Train(mode bool) *JitModule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JitModule ¶
A container for a torch script module in C++.
func (*JitModule) Forward ¶
func (module *JitModule) Forward(inputs []*torch.IValue) (output *torch.IValue)
Forward pass IValues through the module and return the resulting IValue.
func (*JitModule) IsTraining ¶
Return true if training features are enabled for the module, false otherwise.
Click to show internal directories.
Click to hide internal directories.