// CompileTorchScript compiles TorchScript and returns a *JITModule
CompileTorchScript compiles TorchScript and returns a *JITModule
// CompileTorchScript compiles TorchScript and returns a * JITModule
func CompileTorchScript(torchScript string) (*JITModule, error) {
	cstr := C.CString(torchScript)
	defer C.free(unsafe.Pointer(cstr))
	var cErr C.Torch_Error
	ctx := C.Torch_CompileTorchScript(cstr, &cErr)
	if err := checkError(cErr); err != nil {
		return nil, err
	}
	mod := &JITModule{context: ctx}
	runtime.SetFinalizer(mod, (*JITModule).finalize)
	return mod, nil
}
func CompileTorchScript ( torchScript string ) ( * JITModule , error ) { cstr := C . CString ( torchScript ) defer C . free ( unsafe . Pointer ( cstr ) ) var cErr C . Torch_Error ctx := C . Torch_CompileTorchScript ( cstr , & cErr ) if err := checkError ( cErr ) ; err != nil { return nil , err } mod := & JITModule { context : ctx } runtime . SetFinalizer ( mod , ( * JITModule ) . finalize ) return mod , nil }
CompileTorchScript compiles TorchScript and returns a *JITModule
CompileTorchScript compiles TorchScript and returns a * JITModule