// Arguments returns method arguments for the method schema
Arguments returns method arguments for the method schema
// Arguments returns method arguments for the method schema
func (m *JITModuleMethod) Arguments() []JITModuleMethodArgument {
	var resSize C.ulong
	resPtr := C.Torch_JITModuleMethodArguments(m.context, &resSize)
	defer C.free(unsafe.Pointer(resPtr))
	resSlice := (*[1 << 30]C.Torch_ModuleMethodArgument)(unsafe.Pointer(resPtr))[:resSize:resSize]
	args := make([]JITModuleMethodArgument, int(resSize))
	for i, arg := range resSlice {
		args[i] = JITModuleMethodArgument{
			Name: C.GoString(arg.name),
			Type: C.GoString(arg.typ),
		}
		C.free(unsafe.Pointer(arg.typ))
		C.free(unsafe.Pointer(arg.name))
	}
	return args
}
func ( m * JITModuleMethod ) Arguments ( ) [ ] JITModuleMethodArgument { var resSize C . ulong resPtr := C . Torch_JITModuleMethodArguments ( m . context , & resSize ) defer C . free ( unsafe . Pointer ( resPtr ) ) resSlice := ( * [ 1 << 30 ] C . Torch_ModuleMethodArgument ) ( unsafe . Pointer ( resPtr ) ) [ : resSize : resSize ] args := make ( [ ] JITModuleMethodArgument , int ( resSize ) ) for i , arg := range resSlice { args [ i ] = JITModuleMethodArgument { Name : C . GoString ( arg . name ) , Type : C . GoString ( arg . typ ) , } C . free ( unsafe . Pointer ( arg . typ ) ) C . free ( unsafe . Pointer ( arg . name ) ) } return args }
Arguments returns method arguments for the method schema
Arguments returns method arguments for the method schema