testing

package
v0.0.0-...-991f219 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLayerTestResult

func GetLayerTestResult(inPyScript string, layer torch.LayerForTesting, inTensor *tensor.Tensor) *tensor.Tensor

func GetLayerTestResult32

func GetLayerTestResult32(inPyScript string, layer torch.LayerForTesting, inTensor *tensor.Tensor) *tensor.Tensor

func GetLayerTestResult64

func GetLayerTestResult64(inPyScript string, layer torch.LayerForTesting, inTensor *tensor.Tensor, dataType int) *tensor.Tensor

func GetPytorchInitData

func GetPytorchInitData(pyScript string) *tensor.Tensor

func GetTensorTestResult

func GetTensorTestResult(inPyScript string, inTensor1 *tensor.Tensor, inTensor2 *tensor.Tensor) *tensor.Tensor

func IsTesting

func IsTesting() bool

func LayerTest

func LayerTest(inPyScript string, inTensor *tensor.Tensor, dataType string) *tensor.Tensor

func LayerTest1

func LayerTest1(inPyScript string, inTensors []*tensor.Tensor, dataType string) *tensor.Tensor

func RunPyScript

func RunPyScript(pythonScript string)

func TimeMeasure

func TimeMeasure(start time.Time) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL